2000-07-19 16:18:31 +02:00
|
|
|
/* DO NOT EDIT THIS FILE.
|
|
|
|
|
|
|
|
It has been auto-edited by fixincludes from:
|
|
|
|
|
|
|
|
"fixinc/tests/inc/pthread.h"
|
|
|
|
|
|
|
|
This had to be done to correct non-standard usages in the
|
|
|
|
original, manufacturer supplied header file. */
|
|
|
|
|
2000-05-30 21:41:37 +02:00
|
|
|
|
|
|
|
|
2000-08-23 16:13:18 +02:00
|
|
|
#if defined( AIX_PTHREAD_CHECK )
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER \
|
|
|
|
{...init stuff...}
|
|
|
|
#endif /* AIX_PTHREAD_CHECK */
|
|
|
|
|
|
|
|
|
2003-07-31 14:01:07 +02:00
|
|
|
#if defined( ALPHA_PTHREAD_CHECK )
|
|
|
|
# if defined (_PTHREAD_ENV_DECC) || defined (_PTHREAD_ENV_EPCC) || defined (__PRAGMA_EXTERN_PREFIX)
|
|
|
|
# define _PTHREAD_USE_PTDNAM_
|
|
|
|
# endif
|
2004-01-16 21:58:27 +01:00
|
|
|
# if defined (_PTHREAD_ENV_DECC) || defined (__PRAGMA_EXTERN_PREFIX)
|
|
|
|
# define _PTHREAD_USE_PTDNAM_
|
|
|
|
# endif
|
2003-07-31 14:01:07 +02:00
|
|
|
#endif /* ALPHA_PTHREAD_CHECK */
|
|
|
|
|
|
|
|
|
2003-10-14 13:46:47 +02:00
|
|
|
#if defined( ALPHA_PTHREAD_GCC_CHECK )
|
|
|
|
# define _PTHREAD_ENV_INTELC
|
|
|
|
#elif defined (__GNUC__)
|
|
|
|
# define _PTHREAD_ENV_GCC
|
|
|
|
#else
|
|
|
|
# error <pthread.h>: unrecognized compiler.
|
|
|
|
#endif
|
|
|
|
#endif /* ALPHA_PTHREAD_GCC_CHECK */
|
|
|
|
|
|
|
|
|
2004-11-21 17:25:07 +01:00
|
|
|
#if defined( ALPHA_PTHREAD_INIT_CHECK )
|
|
|
|
/*
|
2004-11-22 00:01:44 +01:00
|
|
|
* @(#)_RCSfile: pthread.h,v $ _Revision: 1.1.33.21 $ (DEC) _Date: 2000/08/15 15:30:13 $
|
2004-11-21 17:25:07 +01:00
|
|
|
*/
|
|
|
|
#ifndef _PTHREAD_NOMETER_STATIC
|
|
|
|
# define PTHREAD_MUTEX_INITIALIZER {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
|
|
|
|
# define PTHREAD_COND_INITIALIZER {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, 0, 0, 0, 0 }
|
|
|
|
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
|
|
|
|
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
|
|
|
|
#else
|
|
|
|
# define PTHREAD_MUTEX_INITIALIZER {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
|
|
|
|
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
|
|
|
|
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {{{0},0}, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PTHREAD_RWLOCK_INITIALIZER {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
|
|
|
|
#define PTHREAD_RWLOCK_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, _n_, _a_, 0, 0, 0, 0, 0, 0, 0 }
|
|
|
|
|
|
|
|
#endif /* ALPHA_PTHREAD_INIT_CHECK */
|
|
|
|
|
|
|
|
|
2000-05-30 21:41:37 +02:00
|
|
|
#if defined( PTHREAD_PAGE_SIZE_CHECK )
|
|
|
|
extern int __page_size;
|
|
|
|
#endif /* PTHREAD_PAGE_SIZE_CHECK */
|
2001-05-26 17:47:11 +02:00
|
|
|
|
|
|
|
|
2005-03-21 17:46:09 +01:00
|
|
|
#if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
|
|
|
|
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
|
|
|
|
#endif /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
|
|
|
|
|
|
|
|
|
2003-03-22 22:51:04 +01:00
|
|
|
#if defined( SOLARIS_MUTEX_INIT_1_CHECK )
|
|
|
|
#ident "@(#)pthread.h 1.16 97/05/05 SMI"
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, 0}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, {0}}
|
|
|
|
#endif
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0},0}, 0} /* */
|
|
|
|
#else
|
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0},0}, {0}} /* */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* SOLARIS_MUTEX_INIT_1_CHECK */
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( SOLARIS_MUTEX_INIT_2_CHECK )
|
2001-05-26 17:47:11 +02:00
|
|
|
#ident "@(#)pthread.h 1.26 98/04/12 SMI"
|
2001-07-17 05:59:18 +02:00
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0},0}, {{{0}}}, 0}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0},0}, {{{0}}}, {0}}
|
|
|
|
#endif
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, 0} /* DEFAULTCV */
|
|
|
|
#else
|
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, {0}} /* DEFAULTCV */
|
|
|
|
#endif
|
|
|
|
#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
|
2003-03-22 22:51:04 +01:00
|
|
|
#endif /* SOLARIS_MUTEX_INIT_2_CHECK */
|
2002-05-22 04:55:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
#if defined( THREAD_KEYWORD_CHECK )
|
2002-05-22 22:02:16 +02:00
|
|
|
extern int pthread_create (pthread_t *__restrict __thr,
|
2002-05-22 04:55:06 +02:00
|
|
|
extern int pthread_kill (pthread_t __thr, int __signo);
|
2002-05-22 23:29:38 +02:00
|
|
|
extern int pthread_cancel (pthread_t __thr);
|
2002-05-22 04:55:06 +02:00
|
|
|
#endif /* THREAD_KEYWORD_CHECK */
|