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
|
|
|
|
|
|
|
|
2011-11-17 03:28:07 +01:00
|
|
|
#if defined( AIX_ONCE_INIT_1_CHECK )
|
|
|
|
#define PTHREAD_ONCE_INIT \
|
|
|
|
{{ \
|
|
|
|
|
|
|
|
#endif /* AIX_ONCE_INIT_1_CHECK */
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( AIX_ONCE_INIT_2_CHECK )
|
|
|
|
0 \
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif /* AIX_ONCE_INIT_2_CHECK */
|
|
|
|
|
|
|
|
|
2000-08-23 16:13:18 +02:00
|
|
|
#if defined( AIX_PTHREAD_CHECK )
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER \
|
|
|
|
{...init stuff...}
|
|
|
|
#endif /* AIX_PTHREAD_CHECK */
|
|
|
|
|
|
|
|
|
2006-10-01 07:47:33 +02:00
|
|
|
#if defined( GLIBC_MUTEX_INIT_CHECK )
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER \
|
|
|
|
{ { 0, 0, 0, 0, 0, 0 } }
|
2006-10-03 07:52:05 +02:00
|
|
|
#ifdef __USE_GNU
|
|
|
|
# if __WORDSIZE == 64
|
|
|
|
# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
|
|
|
|
# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
|
|
|
|
# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
|
|
|
|
# else
|
|
|
|
# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
|
|
|
|
# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
|
|
|
|
# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
|
|
|
|
# endif
|
|
|
|
#endif
|
2006-10-01 07:47:33 +02:00
|
|
|
# if __WORDSIZE == 64
|
|
|
|
# define PTHREAD_RWLOCK_INITIALIZER \
|
|
|
|
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
|
|
|
|
# else
|
|
|
|
# define PTHREAD_RWLOCK_INITIALIZER \
|
|
|
|
{ { 0, 0, 0, 0, 0, 0, 0, 0 } }
|
|
|
|
# endif
|
2006-10-03 07:52:05 +02:00
|
|
|
# ifdef __USE_GNU
|
|
|
|
# if __WORDSIZE == 64
|
|
|
|
# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
|
2008-06-08 00:25:33 +02:00
|
|
|
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
|
2006-10-03 07:52:05 +02:00
|
|
|
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
|
|
|
|
# else
|
|
|
|
# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
|
|
|
|
{ { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
|
|
|
|
# endif
|
|
|
|
# endif
|
2006-10-01 07:47:33 +02:00
|
|
|
#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
|
|
|
|
#endif /* GLIBC_MUTEX_INIT_CHECK */
|
|
|
|
|
|
|
|
|
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_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)
|
2012-03-22 17:07:47 +01:00
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, 0} /* DEFAULTCV */
|
2001-07-17 05:59:18 +02:00
|
|
|
#else
|
2012-03-22 17:07:47 +01:00
|
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, {0}} /* DEFAULTCV */
|
2001-07-17 05:59:18 +02:00
|
|
|
#endif
|
2006-09-29 21:14:58 +02:00
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER /* = DEFAULTMUTEX */ \
|
|
|
|
{{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, 0}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER /* = DEFAULTMUTEX */ \
|
|
|
|
{{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, {0}}
|
|
|
|
#endif
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_COND_INITIALIZER /* = DEFAULTCV */ \
|
|
|
|
{{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, 0}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_COND_INITIALIZER /* = DEFAULTCV */ \
|
|
|
|
{{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, {0}}
|
|
|
|
#endif
|
2003-03-22 22:51:04 +01:00
|
|
|
#endif /* SOLARIS_MUTEX_INIT_2_CHECK */
|
2002-05-22 04:55:06 +02:00
|
|
|
|
|
|
|
|
2006-09-27 06:25:34 +02:00
|
|
|
#if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
|
|
|
|
#ident "@(#)pthread.h 1.26 98/04/12 SMI"
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
|
|
|
|
#endif
|
|
|
|
#endif /* SOLARIS_RWLOCK_INIT_1_CHECK */
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( SOLARIS_ONCE_INIT_1_CHECK )
|
|
|
|
#pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
|
2006-09-28 02:45:56 +02:00
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
2006-09-27 06:25:34 +02:00
|
|
|
#define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
|
2006-09-28 02:45:56 +02:00
|
|
|
#else
|
|
|
|
#define PTHREAD_ONCE_INIT {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
|
|
|
|
#endif
|
2006-09-27 06:25:34 +02:00
|
|
|
#endif /* SOLARIS_ONCE_INIT_1_CHECK */
|
|
|
|
|
|
|
|
|
2006-09-28 02:45:56 +02:00
|
|
|
#if defined( SOLARIS_ONCE_INIT_2_CHECK )
|
|
|
|
#ident "@(#)pthread.h 1.26 98/04/12 SMI"
|
|
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
|
|
|
#define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
|
|
|
|
#else
|
|
|
|
#define PTHREAD_ONCE_INIT {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* SOLARIS_ONCE_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 */
|