mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
created posix test suite with test of header files
This commit is contained in:
29
c/src/tests/psxtests/psxhdrs/clock01.c
Normal file
29
c/src/tests/psxtests/psxhdrs/clock01.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/cond01.c
Normal file
24
c/src/tests/psxtests/psxhdrs/cond01.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/cond02.c
Normal file
24
c/src/tests/psxtests/psxhdrs/cond02.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/cond03.c
Normal file
25
c/src/tests/psxtests/psxhdrs/cond03.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/cond04.c
Normal file
24
c/src/tests/psxtests/psxhdrs/cond04.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/cond05.c
Normal file
24
c/src/tests/psxtests/psxhdrs/cond05.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/cond06.c
Normal file
25
c/src/tests/psxtests/psxhdrs/cond06.c
Normal 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 );
|
||||
}
|
||||
26
c/src/tests/psxtests/psxhdrs/cond07.c
Normal file
26
c/src/tests/psxtests/psxhdrs/cond07.c
Normal 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 );
|
||||
}
|
||||
30
c/src/tests/psxtests/psxhdrs/key01.c
Normal file
30
c/src/tests/psxtests/psxhdrs/key01.c
Normal 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 );
|
||||
}
|
||||
28
c/src/tests/psxtests/psxhdrs/key02.c
Normal file
28
c/src/tests/psxtests/psxhdrs/key02.c
Normal 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 );
|
||||
}
|
||||
26
c/src/tests/psxtests/psxhdrs/key03.c
Normal file
26
c/src/tests/psxtests/psxhdrs/key03.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/mutex01.c
Normal file
24
c/src/tests/psxtests/psxhdrs/mutex01.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/mutex02.c
Normal file
24
c/src/tests/psxtests/psxhdrs/mutex02.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/mutex03.c
Normal file
25
c/src/tests/psxtests/psxhdrs/mutex03.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/mutex04.c
Normal file
24
c/src/tests/psxtests/psxhdrs/mutex04.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/mutex05.c
Normal file
24
c/src/tests/psxtests/psxhdrs/mutex05.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/mutex06.c
Normal file
24
c/src/tests/psxtests/psxhdrs/mutex06.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/mutex07.c
Normal file
29
c/src/tests/psxtests/psxhdrs/mutex07.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/mutex08.c
Normal file
25
c/src/tests/psxtests/psxhdrs/mutex08.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/mutex09.c
Normal file
25
c/src/tests/psxtests/psxhdrs/mutex09.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/pthread01.c
Normal file
24
c/src/tests/psxtests/psxhdrs/pthread01.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/pthread02.c
Normal file
24
c/src/tests/psxtests/psxhdrs/pthread02.c
Normal 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 );
|
||||
}
|
||||
28
c/src/tests/psxtests/psxhdrs/pthread03.c
Normal file
28
c/src/tests/psxtests/psxhdrs/pthread03.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/pthread04.c
Normal file
25
c/src/tests/psxtests/psxhdrs/pthread04.c
Normal 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 );
|
||||
}
|
||||
28
c/src/tests/psxtests/psxhdrs/pthread05.c
Normal file
28
c/src/tests/psxtests/psxhdrs/pthread05.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/pthread06.c
Normal file
25
c/src/tests/psxtests/psxhdrs/pthread06.c
Normal 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 );
|
||||
}
|
||||
34
c/src/tests/psxtests/psxhdrs/pthread07.c
Normal file
34
c/src/tests/psxtests/psxhdrs/pthread07.c
Normal 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 );
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/pthread08.c
Normal file
23
c/src/tests/psxtests/psxhdrs/pthread08.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/pthread09.c
Normal file
24
c/src/tests/psxtests/psxhdrs/pthread09.c
Normal 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();
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/pthread10.c
Normal file
25
c/src/tests/psxtests/psxhdrs/pthread10.c
Normal 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 );
|
||||
}
|
||||
42
c/src/tests/psxtests/psxhdrs/pthread11.c
Normal file
42
c/src/tests/psxtests/psxhdrs/pthread11.c
Normal 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, ¶m );
|
||||
}
|
||||
32
c/src/tests/psxtests/psxhdrs/pthread12.c
Normal file
32
c/src/tests/psxtests/psxhdrs/pthread12.c
Normal 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, ¶m );
|
||||
}
|
||||
32
c/src/tests/psxtests/psxhdrs/pthread13.c
Normal file
32
c/src/tests/psxtests/psxhdrs/pthread13.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/pthread14.c
Normal file
29
c/src/tests/psxtests/psxhdrs/pthread14.c
Normal 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 );
|
||||
}
|
||||
32
c/src/tests/psxtests/psxhdrs/pthread15.c
Normal file
32
c/src/tests/psxtests/psxhdrs/pthread15.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/pthread16.c
Normal file
29
c/src/tests/psxtests/psxhdrs/pthread16.c
Normal 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 );
|
||||
}
|
||||
33
c/src/tests/psxtests/psxhdrs/pthread17.c
Normal file
33
c/src/tests/psxtests/psxhdrs/pthread17.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/pthread18.c
Normal file
29
c/src/tests/psxtests/psxhdrs/pthread18.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/pthread19.c
Normal file
29
c/src/tests/psxtests/psxhdrs/pthread19.c
Normal 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, ¶m );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/pthread20.c
Normal file
29
c/src/tests/psxtests/psxhdrs/pthread20.c
Normal 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, ¶m );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/pthread21.c
Normal file
25
c/src/tests/psxtests/psxhdrs/pthread21.c
Normal 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 );
|
||||
}
|
||||
27
c/src/tests/psxtests/psxhdrs/signal01.c
Normal file
27
c/src/tests/psxtests/psxhdrs/signal01.c
Normal 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 );
|
||||
}
|
||||
27
c/src/tests/psxtests/psxhdrs/signal02.c
Normal file
27
c/src/tests/psxtests/psxhdrs/signal02.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/signal03.c
Normal file
24
c/src/tests/psxtests/psxhdrs/signal03.c
Normal 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 );
|
||||
}
|
||||
27
c/src/tests/psxtests/psxhdrs/signal04.c
Normal file
27
c/src/tests/psxtests/psxhdrs/signal04.c
Normal 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 );
|
||||
}
|
||||
24
c/src/tests/psxtests/psxhdrs/signal05.c
Normal file
24
c/src/tests/psxtests/psxhdrs/signal05.c
Normal 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 );
|
||||
}
|
||||
28
c/src/tests/psxtests/psxhdrs/signal06.c
Normal file
28
c/src/tests/psxtests/psxhdrs/signal06.c
Normal 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 );
|
||||
}
|
||||
28
c/src/tests/psxtests/psxhdrs/signal07.c
Normal file
28
c/src/tests/psxtests/psxhdrs/signal07.c
Normal 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 );
|
||||
}
|
||||
30
c/src/tests/psxtests/psxhdrs/signal08.c
Normal file
30
c/src/tests/psxtests/psxhdrs/signal08.c
Normal 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 );
|
||||
}
|
||||
29
c/src/tests/psxtests/psxhdrs/signal09.c
Normal file
29
c/src/tests/psxtests/psxhdrs/signal09.c
Normal 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 );
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/signal10.c
Normal file
25
c/src/tests/psxtests/psxhdrs/signal10.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/clock01.c
Normal file
29
testsuites/psxtests/psxhdrs/clock01.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/cond01.c
Normal file
24
testsuites/psxtests/psxhdrs/cond01.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/cond02.c
Normal file
24
testsuites/psxtests/psxhdrs/cond02.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/cond03.c
Normal file
25
testsuites/psxtests/psxhdrs/cond03.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/cond04.c
Normal file
24
testsuites/psxtests/psxhdrs/cond04.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/cond05.c
Normal file
24
testsuites/psxtests/psxhdrs/cond05.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/cond06.c
Normal file
25
testsuites/psxtests/psxhdrs/cond06.c
Normal 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 );
|
||||
}
|
||||
26
testsuites/psxtests/psxhdrs/cond07.c
Normal file
26
testsuites/psxtests/psxhdrs/cond07.c
Normal 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 );
|
||||
}
|
||||
30
testsuites/psxtests/psxhdrs/key01.c
Normal file
30
testsuites/psxtests/psxhdrs/key01.c
Normal 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 );
|
||||
}
|
||||
28
testsuites/psxtests/psxhdrs/key02.c
Normal file
28
testsuites/psxtests/psxhdrs/key02.c
Normal 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 );
|
||||
}
|
||||
26
testsuites/psxtests/psxhdrs/key03.c
Normal file
26
testsuites/psxtests/psxhdrs/key03.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/mutex01.c
Normal file
24
testsuites/psxtests/psxhdrs/mutex01.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/mutex02.c
Normal file
24
testsuites/psxtests/psxhdrs/mutex02.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/mutex03.c
Normal file
25
testsuites/psxtests/psxhdrs/mutex03.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/mutex04.c
Normal file
24
testsuites/psxtests/psxhdrs/mutex04.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/mutex05.c
Normal file
24
testsuites/psxtests/psxhdrs/mutex05.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/mutex06.c
Normal file
24
testsuites/psxtests/psxhdrs/mutex06.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/mutex07.c
Normal file
29
testsuites/psxtests/psxhdrs/mutex07.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/mutex08.c
Normal file
25
testsuites/psxtests/psxhdrs/mutex08.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/mutex09.c
Normal file
25
testsuites/psxtests/psxhdrs/mutex09.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/pthread01.c
Normal file
24
testsuites/psxtests/psxhdrs/pthread01.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/pthread02.c
Normal file
24
testsuites/psxtests/psxhdrs/pthread02.c
Normal 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 );
|
||||
}
|
||||
28
testsuites/psxtests/psxhdrs/pthread03.c
Normal file
28
testsuites/psxtests/psxhdrs/pthread03.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/pthread04.c
Normal file
25
testsuites/psxtests/psxhdrs/pthread04.c
Normal 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 );
|
||||
}
|
||||
28
testsuites/psxtests/psxhdrs/pthread05.c
Normal file
28
testsuites/psxtests/psxhdrs/pthread05.c
Normal 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 );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/pthread06.c
Normal file
25
testsuites/psxtests/psxhdrs/pthread06.c
Normal 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 );
|
||||
}
|
||||
34
testsuites/psxtests/psxhdrs/pthread07.c
Normal file
34
testsuites/psxtests/psxhdrs/pthread07.c
Normal 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 );
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/pthread08.c
Normal file
23
testsuites/psxtests/psxhdrs/pthread08.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/pthread09.c
Normal file
24
testsuites/psxtests/psxhdrs/pthread09.c
Normal 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();
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/pthread10.c
Normal file
25
testsuites/psxtests/psxhdrs/pthread10.c
Normal 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 );
|
||||
}
|
||||
42
testsuites/psxtests/psxhdrs/pthread11.c
Normal file
42
testsuites/psxtests/psxhdrs/pthread11.c
Normal 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, ¶m );
|
||||
}
|
||||
32
testsuites/psxtests/psxhdrs/pthread12.c
Normal file
32
testsuites/psxtests/psxhdrs/pthread12.c
Normal 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, ¶m );
|
||||
}
|
||||
32
testsuites/psxtests/psxhdrs/pthread13.c
Normal file
32
testsuites/psxtests/psxhdrs/pthread13.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/pthread14.c
Normal file
29
testsuites/psxtests/psxhdrs/pthread14.c
Normal 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 );
|
||||
}
|
||||
32
testsuites/psxtests/psxhdrs/pthread15.c
Normal file
32
testsuites/psxtests/psxhdrs/pthread15.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/pthread16.c
Normal file
29
testsuites/psxtests/psxhdrs/pthread16.c
Normal 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 );
|
||||
}
|
||||
33
testsuites/psxtests/psxhdrs/pthread17.c
Normal file
33
testsuites/psxtests/psxhdrs/pthread17.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/pthread18.c
Normal file
29
testsuites/psxtests/psxhdrs/pthread18.c
Normal 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 );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/pthread19.c
Normal file
29
testsuites/psxtests/psxhdrs/pthread19.c
Normal 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, ¶m );
|
||||
}
|
||||
29
testsuites/psxtests/psxhdrs/pthread20.c
Normal file
29
testsuites/psxtests/psxhdrs/pthread20.c
Normal 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, ¶m );
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/pthread21.c
Normal file
25
testsuites/psxtests/psxhdrs/pthread21.c
Normal 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 );
|
||||
}
|
||||
27
testsuites/psxtests/psxhdrs/signal01.c
Normal file
27
testsuites/psxtests/psxhdrs/signal01.c
Normal 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 );
|
||||
}
|
||||
27
testsuites/psxtests/psxhdrs/signal02.c
Normal file
27
testsuites/psxtests/psxhdrs/signal02.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/signal03.c
Normal file
24
testsuites/psxtests/psxhdrs/signal03.c
Normal 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 );
|
||||
}
|
||||
27
testsuites/psxtests/psxhdrs/signal04.c
Normal file
27
testsuites/psxtests/psxhdrs/signal04.c
Normal 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 );
|
||||
}
|
||||
24
testsuites/psxtests/psxhdrs/signal05.c
Normal file
24
testsuites/psxtests/psxhdrs/signal05.c
Normal 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 );
|
||||
}
|
||||
28
testsuites/psxtests/psxhdrs/signal06.c
Normal file
28
testsuites/psxtests/psxhdrs/signal06.c
Normal 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 );
|
||||
}
|
||||
28
testsuites/psxtests/psxhdrs/signal07.c
Normal file
28
testsuites/psxtests/psxhdrs/signal07.c
Normal 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 );
|
||||
}
|
||||
30
testsuites/psxtests/psxhdrs/signal08.c
Normal file
30
testsuites/psxtests/psxhdrs/signal08.c
Normal 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
Reference in New Issue
Block a user