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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [fixincludes/] [tests/] [base/] [pthread.h] - Blame information for rev 841

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

Line No. Rev Author Line
1 266 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_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, _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
#endif  /* ALPHA_PTHREAD_INIT_CHECK */
56
 
57
 
58
#if defined( GLIBC_MUTEX_INIT_CHECK )
59
#define PTHREAD_MUTEX_INITIALIZER \
60
  { { 0, 0, 0, 0, 0, 0 } }
61
#ifdef __USE_GNU
62
# if __WORDSIZE == 64
63
#  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
64
  { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
65
#  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
66
  { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
67
#  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
68
  { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
69
# else
70
#  define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
71
  { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
72
#  define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
73
  { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
74
#  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
75
  { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
76
# endif
77
#endif
78
# if __WORDSIZE == 64
79
#  define PTHREAD_RWLOCK_INITIALIZER \
80
  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
81
# else
82
#  define PTHREAD_RWLOCK_INITIALIZER \
83
  { { 0, 0, 0, 0, 0, 0, 0, 0 } }
84
# endif
85
# ifdef __USE_GNU
86
#  if __WORDSIZE == 64
87
#   define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
88
  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                             \
89
      PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
90
#  else
91
#   define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
92
  { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
93
#  endif
94
# endif
95
#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
96
#endif  /* GLIBC_MUTEX_INIT_CHECK */
97
 
98
 
99
#if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
100
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
101
#endif  /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
102
 
103
 
104
#if defined( SOLARIS_COND_INIT_CHECK )
105
#pragma ident   "@(#)pthread.h  1.29    01/07/07 SMI"
106
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
107
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, 0}   /* = DEFAULTCV */
108
#else
109
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, {0}} /* = DEFAULTCV */
110
#endif
111
#endif  /* SOLARIS_COND_INIT_CHECK */
112
 
113
 
114
#if defined( SOLARIS_MUTEX_INIT_2_CHECK )
115
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
116
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
117
#define PTHREAD_MUTEX_INITIALIZER       {{{0},0}, {{{0}}}, 0}
118
#else
119
#define PTHREAD_MUTEX_INITIALIZER       {{{0},0}, {{{0}}}, {0}}
120
#endif
121
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
122
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, 0}   /* DEFAULTCV */
123
#else
124
#define PTHREAD_COND_INITIALIZER        {{{0}, 0, 0x4356}, {0}} /* DEFAULTCV */
125
#endif
126
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
127
#define PTHREAD_MUTEX_INITIALIZER               /* = DEFAULTMUTEX */    \
128
        {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, 0}
129
#else
130
#define PTHREAD_MUTEX_INITIALIZER               /* = DEFAULTMUTEX */    \
131
        {{0, 0, 0, DEFAULT_TYPE, _MUTEX_MAGIC}, {{{0}}}, {0}}
132
#endif
133
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
134
#define PTHREAD_COND_INITIALIZER                /* = DEFAULTCV */       \
135
        {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, 0}
136
#else
137
#define PTHREAD_COND_INITIALIZER                /* = DEFAULTCV */       \
138
        {{{0, 0, 0, 0}, DEFAULT_TYPE, _COND_MAGIC}, {0}}
139
#endif
140
#endif  /* SOLARIS_MUTEX_INIT_2_CHECK */
141
 
142
 
143
#if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
144
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
145
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
146
#define PTHREAD_RWLOCK_INITIALIZER      {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
147
#else
148
#define PTHREAD_RWLOCK_INITIALIZER      {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
149
#endif
150
#endif  /* SOLARIS_RWLOCK_INIT_1_CHECK */
151
 
152
 
153
#if defined( SOLARIS_ONCE_INIT_1_CHECK )
154
#pragma ident   "@(#)pthread.h  1.37    04/09/28 SMI"
155
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
156
#define PTHREAD_ONCE_INIT       {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
157
#else
158
#define PTHREAD_ONCE_INIT       {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
159
#endif
160
#endif  /* SOLARIS_ONCE_INIT_1_CHECK */
161
 
162
 
163
#if defined( SOLARIS_ONCE_INIT_2_CHECK )
164
#ident "@(#)pthread.h  1.26  98/04/12 SMI"
165
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
166
#define PTHREAD_ONCE_INIT       {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
167
#else
168
#define PTHREAD_ONCE_INIT       {{{0}, {0}, {0}, {PTHREAD_ONCE_NOTDONE}}}
169
#endif
170
 
171
#endif  /* SOLARIS_ONCE_INIT_2_CHECK */
172
 
173
 
174
#if defined( THREAD_KEYWORD_CHECK )
175
extern int pthread_create (pthread_t *__restrict __thr,
176
extern int pthread_kill (pthread_t __thr, int __signo);
177
extern int pthread_cancel (pthread_t __thr);
178
#endif  /* THREAD_KEYWORD_CHECK */

powered by: WebSVN 2.1.0

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