OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [fixincludes/] [tests/] [base/] [pthread.h] - Blame information for rev 861

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 724 jeremybenn
/*  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_ONCE_INIT_1_CHECK )
13
#define PTHREAD_ONCE_INIT \
14
{{ \
15
 
16
#endif  /* AIX_ONCE_INIT_1_CHECK */
17
 
18
 
19
#if defined( AIX_ONCE_INIT_2_CHECK )
20
 
21
}}
22
 
23
#endif  /* AIX_ONCE_INIT_2_CHECK */
24
 
25
 
26
#if defined( AIX_PTHREAD_CHECK )
27
#define PTHREAD_MUTEX_INITIALIZER \
28
{...init stuff...}
29
#endif  /* AIX_PTHREAD_CHECK */
30
 
31
 
32
#if defined( ALPHA_PTHREAD_CHECK )
33
#  if defined (_PTHREAD_ENV_DECC) || defined (_PTHREAD_ENV_EPCC) || defined (__PRAGMA_EXTERN_PREFIX)
34
#   define _PTHREAD_USE_PTDNAM_
35
#  endif
36
#  if defined (_PTHREAD_ENV_DECC) || defined (__PRAGMA_EXTERN_PREFIX)
37
#   define _PTHREAD_USE_PTDNAM_
38
#  endif
39
#endif  /* ALPHA_PTHREAD_CHECK */
40
 
41
 
42
#if defined( ALPHA_PTHREAD_GCC_CHECK )
43
# define _PTHREAD_ENV_INTELC
44
#elif defined (__GNUC__)
45
# define _PTHREAD_ENV_GCC
46
#else
47
# error <pthread.h>: unrecognized compiler.
48
#endif
49
#endif  /* ALPHA_PTHREAD_GCC_CHECK */
50
 
51
 
52
#if defined( ALPHA_PTHREAD_INIT_CHECK )
53
/*
54
 * @(#)_RCSfile: pthread.h,v $ _Revision: 1.1.33.21 $ (DEC) _Date: 2000/08/15 15:30:13 $
55
 */
56
#ifndef _PTHREAD_NOMETER_STATIC
57
# define PTHREAD_MUTEX_INITIALIZER     {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
58
# define PTHREAD_COND_INITIALIZER     {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, 0, 0, 0, 0 }
59
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_)     {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
60
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_)     {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
61
#else
62
# define PTHREAD_MUTEX_INITIALIZER {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
63
# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_)     {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
64
# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_)     {0, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
65
#endif
66
 
67
#define PTHREAD_RWLOCK_INITIALIZER {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
68
#define PTHREAD_RWLOCK_INITWITHNAME_NP(_n_,_a_)         {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, _n_, _a_, 0, 0, 0, 0, 0, 0, 0 }
69
#endif  /* ALPHA_PTHREAD_INIT_CHECK */
70
 
71
 
72
#if defined( GLIBC_MUTEX_INIT_CHECK )
73
#define PTHREAD_MUTEX_INITIALIZER \
74
  { { 0, 0, 0, 0, 0, 0 } }
75
#ifdef __USE_GNU
76
# if __WORDSIZE == 64
77
#  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
78
  { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
79
#  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
80
  { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
81
#  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
82
  { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
83
# else
84
#  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
85
  { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
86
#  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
87
  { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
88
#  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
89
  { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
90
# endif
91
#endif
92
# if __WORDSIZE == 64
93
#  define PTHREAD_RWLOCK_INITIALIZER \
94
  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
95
# else
96
#  define PTHREAD_RWLOCK_INITIALIZER \
97
  { { 0, 0, 0, 0, 0, 0, 0, 0 } }
98
# endif
99
# ifdef __USE_GNU
100
#  if __WORDSIZE == 64
101
#   define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
102
  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                             \
103
      PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
104
#  else
105
#   define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
106
  { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
107
#  endif
108
# endif
109
#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
110
#endif  /* GLIBC_MUTEX_INIT_CHECK */
111
 
112
 
113
#if defined( IRIX_PTHREAD_INIT_CHECK )
114
#define PTHREAD_MUTEX_INITIALIZER       { { 0 } }
115
#define PTHREAD_COND_INITIALIZER        { { 0 } }
116
#define PTHREAD_RWLOCK_INITIALIZER      { { 0 } }
117
#endif  /* IRIX_PTHREAD_INIT_CHECK */
118
 
119
 
120
#if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
121
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
122
#endif  /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
123
 
124
 
125
#if defined( SOLARIS_COND_INIT_CHECK )
126
#pragma ident   "@(#)pthread.h  1.29    01/07/07 SMI"
127
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
128
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, 0}   /* = DEFAULTCV */
129
#else
130
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, {0}} /* = DEFAULTCV */
131
#endif
132
#endif  /* SOLARIS_COND_INIT_CHECK */
133
 
134
 
135
#if defined( SOLARIS_MUTEX_INIT_2_CHECK )
136
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
137
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
138
#define PTHREAD_MUTEX_INITIALIZER       {{{0},0}, {{{0}}}, 0}
139
#else
140
#define PTHREAD_MUTEX_INITIALIZER       {{{0},0}, {{{0}}}, {0}}
141
#endif
142
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
143
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, 0}   /* DEFAULTCV */
144
#else
145
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, {0}} /* DEFAULTCV */
146
#endif
147
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
148
#define PTHREAD_MUTEX_INITIALIZER               /* = DEFAULTMUTEX */    \
149
        {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, 0}
150
#else
151
#define PTHREAD_MUTEX_INITIALIZER               /* = DEFAULTMUTEX */    \
152
        {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, {0}}
153
#endif
154
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
155
#define PTHREAD_COND_INITIALIZER                /* = DEFAULTCV */       \
156
        {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, 0}
157
#else
158
#define PTHREAD_COND_INITIALIZER                /* = DEFAULTCV */       \
159
        {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, {0}}
160
#endif
161
#endif  /* SOLARIS_MUTEX_INIT_2_CHECK */
162
 
163
 
164
#if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
165
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
166
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
167
#define PTHREAD_RWLOCK_INITIALIZER      {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
168
#else
169
#define PTHREAD_RWLOCK_INITIALIZER      {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
170
#endif
171
#endif  /* SOLARIS_RWLOCK_INIT_1_CHECK */
172
 
173
 
174
#if defined( SOLARIS_ONCE_INIT_1_CHECK )
175
#pragma ident   "@(#)pthread.h  1.37    04/09/28 SMI"
176
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
177
#define PTHREAD_ONCE_INIT       {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
178
#else
179
#define PTHREAD_ONCE_INIT       {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
180
#endif
181
#endif  /* SOLARIS_ONCE_INIT_1_CHECK */
182
 
183
 
184
#if defined( SOLARIS_ONCE_INIT_2_CHECK )
185
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
186
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
187
#define PTHREAD_ONCE_INIT       {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
188
#else
189
#define PTHREAD_ONCE_INIT       {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
190
#endif
191
 
192
#endif  /* SOLARIS_ONCE_INIT_2_CHECK */
193
 
194
 
195
#if defined( THREAD_KEYWORD_CHECK )
196
extern int pthread_create (pthread_t *__restrict __thr,
197
extern int pthread_kill (pthread_t __thr, int __signo);
198
extern int pthread_cancel (pthread_t __thr);
199
#endif  /* THREAD_KEYWORD_CHECK */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.