1 |
12 |
jlechner |
/* DO NOT EDIT THIS FILE.
|
2 |
|
|
|
3 |
|
|
It has been auto-edited by fixincludes from:
|
4 |
|
|
|
5 |
|
|
"fixinc/tests/inc/pthread.h"
|
6 |
|
|
|
7 |
|
|
This had to be done to correct non-standard usages in the
|
8 |
|
|
original, manufacturer supplied header file. */
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
#if defined( AIX_PTHREAD_CHECK )
|
13 |
|
|
#define PTHREAD_MUTEX_INITIALIZER \
|
14 |
|
|
{...init stuff...}
|
15 |
|
|
#endif /* AIX_PTHREAD_CHECK */
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
#if defined( ALPHA_PTHREAD_CHECK )
|
19 |
|
|
# if defined (_PTHREAD_ENV_DECC) || defined (_PTHREAD_ENV_EPCC) || defined (__PRAGMA_EXTERN_PREFIX)
|
20 |
|
|
# define _PTHREAD_USE_PTDNAM_
|
21 |
|
|
# endif
|
22 |
|
|
# if defined (_PTHREAD_ENV_DECC) || defined (__PRAGMA_EXTERN_PREFIX)
|
23 |
|
|
# define _PTHREAD_USE_PTDNAM_
|
24 |
|
|
# endif
|
25 |
|
|
#endif /* ALPHA_PTHREAD_CHECK */
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
#if defined( ALPHA_PTHREAD_GCC_CHECK )
|
29 |
|
|
# define _PTHREAD_ENV_INTELC
|
30 |
|
|
#elif defined (__GNUC__)
|
31 |
|
|
# define _PTHREAD_ENV_GCC
|
32 |
|
|
#else
|
33 |
|
|
# error <pthread.h>: unrecognized compiler.
|
34 |
|
|
#endif
|
35 |
|
|
#endif /* ALPHA_PTHREAD_GCC_CHECK */
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
#if defined( ALPHA_PTHREAD_INIT_CHECK )
|
39 |
|
|
/*
|
40 |
|
|
* @(#)_RCSfile: pthread.h,v $ _Revision: 1.1.33.21 $ (DEC) _Date: 2000/08/15 15:30:13 $
|
41 |
|
|
*/
|
42 |
|
|
#ifndef _PTHREAD_NOMETER_STATIC
|
43 |
|
|
# define PTHREAD_MUTEX_INITIALIZER {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
|
44 |
|
|
# define PTHREAD_COND_INITIALIZER {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, 0, 0, 0, 0 }
|
45 |
|
|
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
|
46 |
|
|
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
|
47 |
|
|
#else
|
48 |
|
|
# define PTHREAD_MUTEX_INITIALIZER {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
|
49 |
|
|
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
|
50 |
|
|
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {{{0},0}, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
|
51 |
|
|
#endif
|
52 |
|
|
|
53 |
|
|
#define PTHREAD_RWLOCK_INITIALIZER {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
|
54 |
|
|
#define PTHREAD_RWLOCK_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, _n_, _a_, 0, 0, 0, 0, 0, 0, 0 }
|
55 |
|
|
|
56 |
|
|
#endif /* ALPHA_PTHREAD_INIT_CHECK */
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
#if defined( PTHREAD_PAGE_SIZE_CHECK )
|
60 |
|
|
extern int __page_size;
|
61 |
|
|
#endif /* PTHREAD_PAGE_SIZE_CHECK */
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
#if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
|
65 |
|
|
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
|
66 |
|
|
#endif /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
#if defined( SOLARIS_MUTEX_INIT_1_CHECK )
|
70 |
|
|
#ident "@(#)pthread.h 1.16 97/05/05 SMI"
|
71 |
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
72 |
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, 0}
|
73 |
|
|
#else
|
74 |
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0}, 0}, {{{0}}}, {0}}
|
75 |
|
|
#endif
|
76 |
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
77 |
|
|
#define PTHREAD_COND_INITIALIZER {{{0},0}, 0} /* */
|
78 |
|
|
#else
|
79 |
|
|
#define PTHREAD_COND_INITIALIZER {{{0},0}, {0}} /* */
|
80 |
|
|
#endif
|
81 |
|
|
|
82 |
|
|
#endif /* SOLARIS_MUTEX_INIT_1_CHECK */
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
#if defined( SOLARIS_MUTEX_INIT_2_CHECK )
|
86 |
|
|
#ident "@(#)pthread.h 1.26 98/04/12 SMI"
|
87 |
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
88 |
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0},0}, {{{0}}}, 0}
|
89 |
|
|
#else
|
90 |
|
|
#define PTHREAD_MUTEX_INITIALIZER {{{0},0}, {{{0}}}, {0}}
|
91 |
|
|
#endif
|
92 |
|
|
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
|
93 |
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, 0} /* DEFAULTCV */
|
94 |
|
|
#else
|
95 |
|
|
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, {0}} /* DEFAULTCV */
|
96 |
|
|
#endif
|
97 |
|
|
#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
|
98 |
|
|
#endif /* SOLARIS_MUTEX_INIT_2_CHECK */
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
#if defined( THREAD_KEYWORD_CHECK )
|
102 |
|
|
extern int pthread_create (pthread_t *__restrict __thr,
|
103 |
|
|
extern int pthread_kill (pthread_t __thr, int __signo);
|
104 |
|
|
extern int pthread_cancel (pthread_t __thr);
|
105 |
|
|
#endif /* THREAD_KEYWORD_CHECK */
|