created posix test suite with test of header files

This commit is contained in:
Joel Sherrill
1996-05-22 22:39:47 +00:00
parent ef006c1e3b
commit 2328475ccd
102 changed files with 2758 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <time.h>
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_gettime"
#endif
void test( void )
{
clockid_t clock_id = 0;
struct timespec tp;
int result;
result = clock_gettime( clock_id, &tp );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_condattr_t attribute;
result = pthread_condattr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_condattr_t attribute;
result = pthread_condattr_destroy( &attribute );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_condattr_t attribute;
int result;
result = pthread_cond_init( &cond, &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_destroy( &cond );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_signal( &cond );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_cond_wait( &cond, &mutex );
}

View File

@@ -0,0 +1,26 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
struct timespec abstime;
int result;
result = pthread_cond_timedwait( &cond, &mutex, &abstime );
}

View File

@@ -0,0 +1,30 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void key_destructor(
void *argument
)
{
}
void test( void )
{
pthread_key_t key;
int result;
result = pthread_key_create( &key, key_destructor );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_key_t key;
int value;
int result;
key = 0;
value = 0;
result = pthread_setspecific( key, &value );
}

View File

@@ -0,0 +1,26 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_key_t key;
void *value;
key = 0;
value = pthread_getspecific( key );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_mutexattr_t attribute;
result = pthread_mutexattr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_mutexattr_t attribute;
result = pthread_mutexattr_destroy( &attribute );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutexattr_t attribute;
int result;
result = pthread_mutex_init( &mutex, &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_destroy( &mutex );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_lock( &mutex );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_unlock( &mutex );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int protocol;
int result;
protocol = PTHREAD_PRIO_NONE;
protocol = PTHREAD_PRIO_INHERIT;
protocol = PTHREAD_PRIO_PROTECT;
result = pthread_mutexattr_setprotocol( &attribute, protocol );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_getprioceiling( &attribute, &prioceiling );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_setprioceiling( &attribute, prioceiling );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
result = pthread_attr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
result = pthread_attr_destroy( &attribute );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
int state;
state = PTHREAD_CREATE_DETACHED;
state = PTHREAD_CREATE_JOINABLE;
result = pthread_attr_setdetachstate( &attribute, state );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
int state;
result = pthread_attr_getdetachstate( &attribute, &state );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#include <limits.h> /* only for PTHREAD_STACK_MIN */
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
size = PTHREAD_STACK_MIN;
result = pthread_attr_setstacksize( &attribute, size );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
result = pthread_attr_getstacksize( &attribute, &size );
}

View File

@@ -0,0 +1,34 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void *test_task(
void * arg
)
{
for ( ; ; )
;
}
void test( void )
{
pthread_t thread;
pthread_attr_t attribute;
void *arg = NULL;
int result;
result = pthread_create( &thread, &attribute, test_task, arg );
}

View File

@@ -0,0 +1,23 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
void *status = NULL;
pthread_exit( status );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t self;
self = pthread_self();
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t id_1 = 0;
pthread_t id_2 = 0;
int status;
status = pthread_equal( id_1, id_2 );
}

View File

@@ -0,0 +1,42 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_setschedparam"
#endif
void test( void )
{
pthread_t thread;
int policy;
struct sched_param param;
int status;
thread = 0;
policy = SCHED_OTHER;
policy = SCHED_FIFO;
policy = SCHED_RR;
/*
* really should use sched_get_priority_min() and sched_get_priority_max()
*/
param.sched_priority = 0;
status = pthread_setschedparam( thread, policy, &param );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_getschedparam"
#endif
void test( void )
{
pthread_t thread;
int policy;
struct sched_param param;
int status;
thread = 0;
status = pthread_getschedparam( thread, &policy, &param );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setscope"
#endif
void test( void )
{
pthread_attr_t attr;
int contentsionscope;
int status;
contentsionscope = PTHREAD_SCOPE_SYSTEM;
contentsionscope = PTHREAD_SCOPE_PROCESS;
status = pthread_attr_setscope( &attr, contentsionscope );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getscope"
#endif
void test( void )
{
pthread_attr_t attr;
int contentionscope;
int status;
status = pthread_attr_getscope( &attr, &contentionscope );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setinheritsched"
#endif
void test( void )
{
pthread_attr_t attr;
int inheritsched;
int status;
inheritsched = PTHREAD_INHERIT_SCHED;
inheritsched = PTHREAD_EXPLICIT_SCHED;
status = pthread_attr_setinheritsched( &attr, inheritsched );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getinheritsched"
#endif
void test( void )
{
pthread_attr_t attr;
int inheritsched;
int status;
status = pthread_attr_getinheritsched( &attr, &inheritsched );
}

View File

@@ -0,0 +1,33 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setschedpolicy"
#endif
void test( void )
{
pthread_attr_t attr;
int policy;
int status;
policy = SCHED_FIFO;
policy = SCHED_RR;
policy = SCHED_OTHER;
status = pthread_attr_setschedpolicy( &attr, policy );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getschedpolicy"
#endif
void test( void )
{
pthread_attr_t attr;
int policy;
int status;
status = pthread_attr_getschedpolicy( &attr, &policy );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setschedparam"
#endif
void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
status = pthread_attr_setschedparam( &attr, &param );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getschedparam"
#endif
void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
status = pthread_attr_getschedparam( &attr, &param );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t thread;
int status;
thread = 0;
status = pthread_detach( thread );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigaddset( &signal_set, signal_number );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigdelset( &signal_set, signal_number );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int result;
result = sigfillset( &signal_set );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigismember( &signal_set, signal_number );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int result;
result = sigemptyset( &signal_set );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
int signal_number;
struct sigaction act;
struct sigaction oact;
int result;
signal_number = SIGALRM;
result = sigaction( signal_number, &act, &oact );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
pthread_t thread;
int signal_number;
int result;
thread = 0;
signal_number = SIGALRM;
result = pthread_kill( thread, signal_number );
}

View File

@@ -0,0 +1,30 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
int how;
sigset_t set;
sigset_t oset;
int result;
how = SIG_BLOCK;
how = SIG_UNBLOCK;
how = SIG_SETMASK;
result = pthread_sigmask( how, &set, &oset );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <sys/types.h>
#include <signal.h>
void test( void )
{
pid_t pid;
int signal_number;
int result;
pid = 0;
signal_number = SIGALRM;
result = kill( pid, signal_number );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t set;
int sig;
int result;
result = sigwait( &set, &sig );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <time.h>
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_gettime"
#endif
void test( void )
{
clockid_t clock_id = 0;
struct timespec tp;
int result;
result = clock_gettime( clock_id, &tp );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_condattr_t attribute;
result = pthread_condattr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_condattr_t attribute;
result = pthread_condattr_destroy( &attribute );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_condattr_t attribute;
int result;
result = pthread_cond_init( &cond, &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_destroy( &cond );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_signal( &cond );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_cond_wait( &cond, &mutex );
}

View File

@@ -0,0 +1,26 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
struct timespec abstime;
int result;
result = pthread_cond_timedwait( &cond, &mutex, &abstime );
}

View File

@@ -0,0 +1,30 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void key_destructor(
void *argument
)
{
}
void test( void )
{
pthread_key_t key;
int result;
result = pthread_key_create( &key, key_destructor );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_key_t key;
int value;
int result;
key = 0;
value = 0;
result = pthread_setspecific( key, &value );
}

View File

@@ -0,0 +1,26 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_key_t key;
void *value;
key = 0;
value = pthread_getspecific( key );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_mutexattr_t attribute;
result = pthread_mutexattr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_mutexattr_t attribute;
result = pthread_mutexattr_destroy( &attribute );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutexattr_t attribute;
int result;
result = pthread_mutex_init( &mutex, &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_destroy( &mutex );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_lock( &mutex );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_unlock( &mutex );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int protocol;
int result;
protocol = PTHREAD_PRIO_NONE;
protocol = PTHREAD_PRIO_INHERIT;
protocol = PTHREAD_PRIO_PROTECT;
result = pthread_mutexattr_setprotocol( &attribute, protocol );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_getprioceiling( &attribute, &prioceiling );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_setprioceiling( &attribute, prioceiling );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
result = pthread_attr_init( &attribute );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
result = pthread_attr_destroy( &attribute );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
int state;
state = PTHREAD_CREATE_DETACHED;
state = PTHREAD_CREATE_JOINABLE;
result = pthread_attr_setdetachstate( &attribute, state );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
int state;
result = pthread_attr_getdetachstate( &attribute, &state );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#include <limits.h> /* only for PTHREAD_STACK_MIN */
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
size = PTHREAD_STACK_MIN;
result = pthread_attr_setstacksize( &attribute, size );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
result = pthread_attr_getstacksize( &attribute, &size );
}

View File

@@ -0,0 +1,34 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void *test_task(
void * arg
)
{
for ( ; ; )
;
}
void test( void )
{
pthread_t thread;
pthread_attr_t attribute;
void *arg = NULL;
int result;
result = pthread_create( &thread, &attribute, test_task, arg );
}

View File

@@ -0,0 +1,23 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
void *status = NULL;
pthread_exit( status );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t self;
self = pthread_self();
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t id_1 = 0;
pthread_t id_2 = 0;
int status;
status = pthread_equal( id_1, id_2 );
}

View File

@@ -0,0 +1,42 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_setschedparam"
#endif
void test( void )
{
pthread_t thread;
int policy;
struct sched_param param;
int status;
thread = 0;
policy = SCHED_OTHER;
policy = SCHED_FIFO;
policy = SCHED_RR;
/*
* really should use sched_get_priority_min() and sched_get_priority_max()
*/
param.sched_priority = 0;
status = pthread_setschedparam( thread, policy, &param );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_getschedparam"
#endif
void test( void )
{
pthread_t thread;
int policy;
struct sched_param param;
int status;
thread = 0;
status = pthread_getschedparam( thread, &policy, &param );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setscope"
#endif
void test( void )
{
pthread_attr_t attr;
int contentsionscope;
int status;
contentsionscope = PTHREAD_SCOPE_SYSTEM;
contentsionscope = PTHREAD_SCOPE_PROCESS;
status = pthread_attr_setscope( &attr, contentsionscope );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getscope"
#endif
void test( void )
{
pthread_attr_t attr;
int contentionscope;
int status;
status = pthread_attr_getscope( &attr, &contentionscope );
}

View File

@@ -0,0 +1,32 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setinheritsched"
#endif
void test( void )
{
pthread_attr_t attr;
int inheritsched;
int status;
inheritsched = PTHREAD_INHERIT_SCHED;
inheritsched = PTHREAD_EXPLICIT_SCHED;
status = pthread_attr_setinheritsched( &attr, inheritsched );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getinheritsched"
#endif
void test( void )
{
pthread_attr_t attr;
int inheritsched;
int status;
status = pthread_attr_getinheritsched( &attr, &inheritsched );
}

View File

@@ -0,0 +1,33 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setschedpolicy"
#endif
void test( void )
{
pthread_attr_t attr;
int policy;
int status;
policy = SCHED_FIFO;
policy = SCHED_RR;
policy = SCHED_OTHER;
status = pthread_attr_setschedpolicy( &attr, policy );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getschedpolicy"
#endif
void test( void )
{
pthread_attr_t attr;
int policy;
int status;
status = pthread_attr_getschedpolicy( &attr, &policy );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_setschedparam"
#endif
void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
status = pthread_attr_setschedparam( &attr, &param );
}

View File

@@ -0,0 +1,29 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is support to have pthread_attr_getschedparam"
#endif
void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
status = pthread_attr_getschedparam( &attr, &param );
}

View File

@@ -0,0 +1,25 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <pthread.h>
void test( void )
{
pthread_t thread;
int status;
thread = 0;
status = pthread_detach( thread );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigaddset( &signal_set, signal_number );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigdelset( &signal_set, signal_number );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int result;
result = sigfillset( &signal_set );
}

View File

@@ -0,0 +1,27 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int signal_number;
int result;
signal_number = SIGALRM;
result = sigismember( &signal_set, signal_number );
}

View File

@@ -0,0 +1,24 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
sigset_t signal_set;
int result;
result = sigemptyset( &signal_set );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
int signal_number;
struct sigaction act;
struct sigaction oact;
int result;
signal_number = SIGALRM;
result = sigaction( signal_number, &act, &oact );
}

View File

@@ -0,0 +1,28 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
pthread_t thread;
int signal_number;
int result;
thread = 0;
signal_number = SIGALRM;
result = pthread_kill( thread, signal_number );
}

View File

@@ -0,0 +1,30 @@
/*
* This test file is used to verify that the header files associated with
* the callout are correct.
*
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
* On-Line Applications Research Corporation (OAR).
* All rights assigned to U.S. Government, 1994.
*
* This material may be reproduced by or for the U.S. Government pursuant
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
* $Id$
*/
#include <signal.h>
void test( void )
{
int how;
sigset_t set;
sigset_t oset;
int result;
how = SIG_BLOCK;
how = SIG_UNBLOCK;
how = SIG_SETMASK;
result = pthread_sigmask( how, &set, &oset );
}

Some files were not shown because too many files have changed in this diff Show More