annotate fixincludes/tests/base/pthread.h @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* DO NOT EDIT THIS FILE.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 It has been auto-edited by fixincludes from:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 "fixinc/tests/inc/pthread.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 This had to be done to correct non-standard usages in the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 original, manufacturer supplied header file. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
111
kono
parents: 67
diff changeset
12 #if defined( AIX_ONCE_INIT_1_CHECK )
kono
parents: 67
diff changeset
13 #define PTHREAD_ONCE_INIT \
kono
parents: 67
diff changeset
14 {{ \
kono
parents: 67
diff changeset
15
kono
parents: 67
diff changeset
16 #endif /* AIX_ONCE_INIT_1_CHECK */
kono
parents: 67
diff changeset
17
kono
parents: 67
diff changeset
18
kono
parents: 67
diff changeset
19 #if defined( AIX_ONCE_INIT_2_CHECK )
kono
parents: 67
diff changeset
20 0 \
kono
parents: 67
diff changeset
21 }}
kono
parents: 67
diff changeset
22
kono
parents: 67
diff changeset
23 #endif /* AIX_ONCE_INIT_2_CHECK */
kono
parents: 67
diff changeset
24
kono
parents: 67
diff changeset
25
kono
parents: 67
diff changeset
26 #if defined( AIX_MUTEX_INITIALIZER_1_CHECK )
kono
parents: 67
diff changeset
27 #define PTHREAD_MUTEX_INITIALIZER \
kono
parents: 67
diff changeset
28 {{ \
kono
parents: 67
diff changeset
29
kono
parents: 67
diff changeset
30 #endif /* AIX_MUTEX_INITIALIZER_1_CHECK */
kono
parents: 67
diff changeset
31
kono
parents: 67
diff changeset
32
kono
parents: 67
diff changeset
33 #if defined( AIX_COND_INITIALIZER_1_CHECK )
kono
parents: 67
diff changeset
34 #define PTHREAD_COND_INITIALIZER \
kono
parents: 67
diff changeset
35 {{ \
kono
parents: 67
diff changeset
36
kono
parents: 67
diff changeset
37 #endif /* AIX_COND_INITIALIZER_1_CHECK */
kono
parents: 67
diff changeset
38
kono
parents: 67
diff changeset
39
kono
parents: 67
diff changeset
40 #if defined( AIX_RWLOCK_INITIALIZER_1_CHECK )
kono
parents: 67
diff changeset
41 #define PTHREAD_RWLOCK_INITIALIZER \
kono
parents: 67
diff changeset
42 {{ \
kono
parents: 67
diff changeset
43
kono
parents: 67
diff changeset
44 #endif /* AIX_RWLOCK_INITIALIZER_1_CHECK */
kono
parents: 67
diff changeset
45
kono
parents: 67
diff changeset
46
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 #if defined( AIX_PTHREAD_CHECK )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 #define PTHREAD_MUTEX_INITIALIZER \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 {...init stuff...}
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 #endif /* AIX_PTHREAD_CHECK */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 #if defined( GLIBC_MUTEX_INIT_CHECK )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 #define PTHREAD_MUTEX_INITIALIZER \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 { { 0, 0, 0, 0, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 #ifdef __USE_GNU
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 # if __WORDSIZE == 64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 # define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 # define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 # else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 # define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 # define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 # endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 # if __WORDSIZE == 64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 # define PTHREAD_RWLOCK_INITIALIZER \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 # else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 # define PTHREAD_RWLOCK_INITIALIZER \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 { { 0, 0, 0, 0, 0, 0, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 # endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 # ifdef __USE_GNU
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 # if __WORDSIZE == 64
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 # define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 # else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 # define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 # endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 # endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 #define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 #endif /* GLIBC_MUTEX_INIT_CHECK */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 #if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 #endif /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98
111
kono
parents: 67
diff changeset
99 #if defined( SOLARIS_ONCE_INIT_1_CHECK )
kono
parents: 67
diff changeset
100 #pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
kono
parents: 67
diff changeset
101 #define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
kono
parents: 67
diff changeset
102 #endif /* SOLARIS_ONCE_INIT_1_CHECK */
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 #if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 #ident "@(#)pthread.h 1.26 98/04/12 SMI"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 #if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 #define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 #else
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 #define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 #endif /* SOLARIS_RWLOCK_INIT_1_CHECK */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 #if defined( THREAD_KEYWORD_CHECK )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 extern int pthread_create (pthread_t *__restrict __thr,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 extern int pthread_kill (pthread_t __thr, int __signo);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 extern int pthread_cancel (pthread_t __thr);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 #endif /* THREAD_KEYWORD_CHECK */