tecscde 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rubocop.yml +125 -0
  4. data/.rubocop_todo.yml +188 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE +46 -0
  8. data/LICENSE.ja +32 -0
  9. data/README.ja.md +200 -0
  10. data/README.md +35 -0
  11. data/Rakefile +27 -0
  12. data/bin/tecscde +64 -0
  13. data/glade/tecscde-cell-property.glade +205 -0
  14. data/glade/tecscde-celltype-property.glade +172 -0
  15. data/glade/tecscde-celltype.glade +414 -0
  16. data/glade/tecscde-export.glade +161 -0
  17. data/glade/test-cell-plugin.rb +51 -0
  18. data/glade/test-cell-property.rb +35 -0
  19. data/glade/test-export.rb +35 -0
  20. data/glade/test-palette.rb +26 -0
  21. data/lib/tcflow.rb +148 -0
  22. data/lib/tecscde.rb +65 -0
  23. data/lib/tecscde/NewCell.png +0 -0
  24. data/lib/tecscde/SelectArrow.png +0 -0
  25. data/lib/tecscde/attr_tree_view.rb +253 -0
  26. data/lib/tecscde/cell_plugin_dialog.glade +294 -0
  27. data/lib/tecscde/cell_plugin_dialog.rb +89 -0
  28. data/lib/tecscde/celltype_tree_view.rb +105 -0
  29. data/lib/tecscde/change_set_control.rb +35 -0
  30. data/lib/tecscde/change_set_control/change_set.rb +32 -0
  31. data/lib/tecscde/change_set_control/change_set_manager.rb +62 -0
  32. data/lib/tecscde/command.rb +35 -0
  33. data/lib/tecscde/control.rb +491 -0
  34. data/lib/tecscde/highlighted_objects.rb +180 -0
  35. data/lib/tecscde/logger.rb +74 -0
  36. data/lib/tecscde/main_view_and_model.rb +80 -0
  37. data/lib/tecscde/palette.glade +553 -0
  38. data/lib/tecscde/palette.rb +174 -0
  39. data/lib/tecscde/preferences.glade +117 -0
  40. data/lib/tecscde/preferences.rb +44 -0
  41. data/lib/tecscde/tecs_model.rb +1137 -0
  42. data/lib/tecscde/tecs_model/hbar.rb +68 -0
  43. data/lib/tecscde/tecs_model/tm_c_port.rb +122 -0
  44. data/lib/tecscde/tecs_model/tm_c_port_array.rb +98 -0
  45. data/lib/tecscde/tecs_model/tm_cell.rb +496 -0
  46. data/lib/tecscde/tecs_model/tm_e_port.rb +126 -0
  47. data/lib/tecscde/tecs_model/tm_e_port_array.rb +78 -0
  48. data/lib/tecscde/tecs_model/tm_join.rb +293 -0
  49. data/lib/tecscde/tecs_model/tm_join_bar.rb +146 -0
  50. data/lib/tecscde/tecs_model/tm_port.rb +238 -0
  51. data/lib/tecscde/tecs_model/tm_port_array.rb +246 -0
  52. data/lib/tecscde/tecs_model/tm_region.rb +107 -0
  53. data/lib/tecscde/tecs_model/tm_uneditable.rb +68 -0
  54. data/lib/tecscde/tecs_model/vbar.rb +68 -0
  55. data/lib/tecscde/templates/_cell_info.cde.erb +15 -0
  56. data/lib/tecscde/templates/_join_info.cde.erb +28 -0
  57. data/lib/tecscde/templates/main.cde.erb +49 -0
  58. data/lib/tecscde/tm_object.rb +91 -0
  59. data/lib/tecscde/version.rb +4 -0
  60. data/lib/tecscde/view.rb +58 -0
  61. data/lib/tecscde/view/cairo_matrix.rb +90 -0
  62. data/lib/tecscde/view/canvas.rb +59 -0
  63. data/lib/tecscde/view/constants.rb +114 -0
  64. data/lib/tecscde/view/main_view.rb +1245 -0
  65. data/lib/tecsflow.rb +475 -0
  66. data/lib/tecsflow/C_parser.tab.rb +2471 -0
  67. data/lib/tecsflow/C_parser.y.rb +1087 -0
  68. data/lib/tecsflow/classes.rb +421 -0
  69. data/lib/tecsgen.rb +581 -0
  70. data/lib/tecsgen/core/C_parser.tab.rb +2477 -0
  71. data/lib/tecsgen/core/C_parser.y +1032 -0
  72. data/lib/tecsgen/core/bnf-deb.tab.rb +5193 -0
  73. data/lib/tecsgen/core/bnf.tab.rb +5193 -0
  74. data/lib/tecsgen/core/bnf.y +2211 -0
  75. data/lib/tecsgen/core/componentobj.rb +7901 -0
  76. data/lib/tecsgen/core/ctypes.rb +226 -0
  77. data/lib/tecsgen/core/expression.rb +1031 -0
  78. data/lib/tecsgen/core/gen_xml.rb +374 -0
  79. data/lib/tecsgen/core/generate.rb +5206 -0
  80. data/lib/tecsgen/core/location.rb +116 -0
  81. data/lib/tecsgen/core/messages.rb +101 -0
  82. data/lib/tecsgen/core/optimize.rb +456 -0
  83. data/lib/tecsgen/core/plugin.rb +332 -0
  84. data/lib/tecsgen/core/pluginModule.rb +165 -0
  85. data/lib/tecsgen/core/syntaxobj.rb +1234 -0
  86. data/lib/tecsgen/core/tecs_lang.rb +306 -0
  87. data/lib/tecsgen/core/tecsgen.rb +453 -0
  88. data/lib/tecsgen/core/tecsinfo.rb +860 -0
  89. data/lib/tecsgen/core/tool_info.rb +258 -0
  90. data/lib/tecsgen/core/types.rb +1632 -0
  91. data/lib/tecsgen/core/unjoin_plugin.rb +218 -0
  92. data/lib/tecsgen/core/value.rb +650 -0
  93. data/lib/tecsgen/messages/messages_console_en_US.rb +1171 -0
  94. data/lib/tecsgen/messages/messages_console_ja_JP.rb +1171 -0
  95. data/lib/tecsgen/messages/messages_file_en_US.rb +334 -0
  96. data/lib/tecsgen/messages/messages_file_ja_JP.rb +163 -0
  97. data/lib/tecsgen/plugin/ATK1AlarmPlugin.rb +196 -0
  98. data/lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb +106 -0
  99. data/lib/tecsgen/plugin/ATK1EventPlugin.rb +147 -0
  100. data/lib/tecsgen/plugin/ATK1ISRPlugin.rb +174 -0
  101. data/lib/tecsgen/plugin/ATK1KernelPlugin.rb +287 -0
  102. data/lib/tecsgen/plugin/ATK1ResourcePlugin.rb +124 -0
  103. data/lib/tecsgen/plugin/ATK1TaskPlugin.rb +220 -0
  104. data/lib/tecsgen/plugin/C2TECSBridgePlugin.rb +210 -0
  105. data/lib/tecsgen/plugin/CellPlugin.rb +61 -0
  106. data/lib/tecsgen/plugin/CelltypePlugin.rb +72 -0
  107. data/lib/tecsgen/plugin/CompositePlugin.rb +66 -0
  108. data/lib/tecsgen/plugin/DomainPlugin.rb +89 -0
  109. data/lib/tecsgen/plugin/HRP2AlarmHandlerPlugin.rb +76 -0
  110. data/lib/tecsgen/plugin/HRP2Cache.rb +1 -0
  111. data/lib/tecsgen/plugin/HRP2CyclicHandlerPlugin.rb +75 -0
  112. data/lib/tecsgen/plugin/HRP2DataqueuePlugin.rb +68 -0
  113. data/lib/tecsgen/plugin/HRP2EventflagPlugin.rb +68 -0
  114. data/lib/tecsgen/plugin/HRP2FixedSizeMemoryPoolPlugin.rb +68 -0
  115. data/lib/tecsgen/plugin/HRP2HandlerPlugin.rb +117 -0
  116. data/lib/tecsgen/plugin/HRP2KernelObjectPlugin.rb +372 -0
  117. data/lib/tecsgen/plugin/HRP2ObjectPlugin.rb +94 -0
  118. data/lib/tecsgen/plugin/HRP2Plugin.rb +140 -0
  119. data/lib/tecsgen/plugin/HRP2PostHook.rb +111 -0
  120. data/lib/tecsgen/plugin/HRP2PriorityDataqueuePlugin.rb +66 -0
  121. data/lib/tecsgen/plugin/HRP2RPCPlugin.rb +319 -0
  122. data/lib/tecsgen/plugin/HRP2SVCPlugin.rb +473 -0
  123. data/lib/tecsgen/plugin/HRP2SemaphorePlugin.rb +67 -0
  124. data/lib/tecsgen/plugin/HRP2TaskPlugin.rb +200 -0
  125. data/lib/tecsgen/plugin/HRPHandlerPlugin.rb +125 -0
  126. data/lib/tecsgen/plugin/HRPKernelObjectManager.rb +72 -0
  127. data/lib/tecsgen/plugin/HRPKernelObjectPlugin.rb +333 -0
  128. data/lib/tecsgen/plugin/HRPObjectPlugin.rb +93 -0
  129. data/lib/tecsgen/plugin/HRPPlugin.rb +356 -0
  130. data/lib/tecsgen/plugin/HRPRPCPlugin.rb +407 -0
  131. data/lib/tecsgen/plugin/HRPSVCPlugin.rb +859 -0
  132. data/lib/tecsgen/plugin/HRPTaskPlugin.rb +107 -0
  133. data/lib/tecsgen/plugin/Mruby2CBridgePlugin.rb +86 -0
  134. data/lib/tecsgen/plugin/MrubyBridgeCellPlugin.rb +264 -0
  135. data/lib/tecsgen/plugin/MrubyBridgeCelltypePlugin.rb +293 -0
  136. data/lib/tecsgen/plugin/MrubyBridgeCompositePlugin.rb +49 -0
  137. data/lib/tecsgen/plugin/MrubyBridgePlugin.rb +67 -0
  138. data/lib/tecsgen/plugin/MrubyBridgeSignaturePlugin.rb +1307 -0
  139. data/lib/tecsgen/plugin/MrubyInfoBridgePlugin.rb +14 -0
  140. data/lib/tecsgen/plugin/MrubyInfoBridgeSignaturePlugin.rb +994 -0
  141. data/lib/tecsgen/plugin/MultiPlugin.rb +57 -0
  142. data/lib/tecsgen/plugin/NotifierPlugin.rb +1217 -0
  143. data/lib/tecsgen/plugin/OpaqueMarshalerPlugin.rb +81 -0
  144. data/lib/tecsgen/plugin/OpaqueRPCPlugin.rb +323 -0
  145. data/lib/tecsgen/plugin/RPCPlugin.rb +266 -0
  146. data/lib/tecsgen/plugin/RepeatCellPlugin.rb +166 -0
  147. data/lib/tecsgen/plugin/RepeatJoinPlugin.rb +130 -0
  148. data/lib/tecsgen/plugin/SharedOpaqueRPCPlugin.rb +357 -0
  149. data/lib/tecsgen/plugin/SharedRPCPlugin.rb +329 -0
  150. data/lib/tecsgen/plugin/SignaturePlugin.rb +77 -0
  151. data/lib/tecsgen/plugin/TECS2CBridgePlugin.rb +178 -0
  152. data/lib/tecsgen/plugin/TECSInfoPlugin.rb +280 -0
  153. data/lib/tecsgen/plugin/ThroughPlugin.rb +333 -0
  154. data/lib/tecsgen/plugin/TracePlugin.rb +484 -0
  155. data/lib/tecsgen/plugin/lib/GenHRP2Marshaler.rb +761 -0
  156. data/lib/tecsgen/plugin/lib/GenOpaqueMarshaler.rb +1107 -0
  157. data/lib/tecsgen/plugin/lib/GenParamCopy.rb +365 -0
  158. data/lib/tecsgen/plugin/lib/GenTransparentMarshaler.rb +683 -0
  159. data/lib/tecsgen/plugin/lib/MrubyBridgeCelltypePluginModule.rb +283 -0
  160. data/lib/tecsgen/plugin/lib/MrubyBridgeSignaturePluginModule.rb +277 -0
  161. data/lib/tecsgen/version.rb +6 -0
  162. data/samples/FigureSamples/active/active.cde +104 -0
  163. data/samples/FigureSamples/active/active.cdl +20 -0
  164. data/samples/FigureSamples/active/active.pdf +0 -0
  165. data/samples/FigureSamples/active/active.png +0 -0
  166. data/samples/FigureSamples/active/gen/tmp_C_src.c +36 -0
  167. data/samples/FigureSamples/active/gen/tmp_cygwin_tecs.h +1908 -0
  168. data/samples/FigureSamples/active/gen/tmp_plugin_post_code.cdl +0 -0
  169. data/samples/FigureSamples/allocator/allocator-internal.png +0 -0
  170. data/samples/FigureSamples/allocator/allocator.cde +171 -0
  171. data/samples/FigureSamples/allocator/allocator.cdl +58 -0
  172. data/samples/FigureSamples/allocator/allocator.png +0 -0
  173. data/samples/FigureSamples/basic/Makefile +87 -0
  174. data/samples/FigureSamples/basic/SimpleSample-trace.cdl +50 -0
  175. data/samples/FigureSamples/basic/SimpleSample.cde +91 -0
  176. data/samples/FigureSamples/basic/SimpleSample.cdl +47 -0
  177. data/samples/FigureSamples/basic/basic.cde +93 -0
  178. data/samples/FigureSamples/basic/basic.cdl +46 -0
  179. data/samples/FigureSamples/basic/basic.png +0 -0
  180. data/samples/FigureSamples/callback/callback.cde +130 -0
  181. data/samples/FigureSamples/callback/callback.cdl +29 -0
  182. data/samples/FigureSamples/callback/callback.png +0 -0
  183. data/samples/FigureSamples/carray/carray.cde +144 -0
  184. data/samples/FigureSamples/carray/carray.cdl +38 -0
  185. data/samples/FigureSamples/carray/carray.png +0 -0
  186. data/samples/FigureSamples/cearray/cearray.cde +314 -0
  187. data/samples/FigureSamples/cearray/cearray.cdl +60 -0
  188. data/samples/FigureSamples/cearray/cearray.png +0 -0
  189. data/samples/FigureSamples/composite/composite-internal.png +0 -0
  190. data/samples/FigureSamples/composite/composite.cde +216 -0
  191. data/samples/FigureSamples/composite/composite.cdl +95 -0
  192. data/samples/FigureSamples/composite/composite.png +0 -0
  193. data/samples/FigureSamples/earray/earray.cde +142 -0
  194. data/samples/FigureSamples/earray/earray.cdl +38 -0
  195. data/samples/FigureSamples/earray/earray.png +0 -0
  196. data/samples/FigureSamples/join/Makefile +87 -0
  197. data/samples/FigureSamples/join/join.cde +132 -0
  198. data/samples/FigureSamples/join/join.cdl +40 -0
  199. data/samples/FigureSamples/join/join.png +0 -0
  200. data/samples/FigureSamples/relay/Makefile +99 -0
  201. data/samples/FigureSamples/relay/relay-internal.png +0 -0
  202. data/samples/FigureSamples/relay/relay.cde +284 -0
  203. data/samples/FigureSamples/relay/relay.cdl +52 -0
  204. data/samples/FigureSamples/relay/relay.png +0 -0
  205. data/samples/FigureSamples/rpc/Makefile +123 -0
  206. data/samples/FigureSamples/rpc/rpc-expand.png +0 -0
  207. data/samples/FigureSamples/rpc/rpc.cde +245 -0
  208. data/samples/FigureSamples/rpc/rpc.png +0 -0
  209. data/samples/FigureSamples/rpc/rpc_sample.cdl +53 -0
  210. data/samples/SimpleSample/Makefile +25 -0
  211. data/samples/SimpleSample/SimpleSample/Makefile +86 -0
  212. data/samples/SimpleSample/SimpleSample/Makefile-trace +91 -0
  213. data/samples/SimpleSample/SimpleSample/README.txt +106 -0
  214. data/samples/SimpleSample/SimpleSample/SimpleSample-trace.cdl +50 -0
  215. data/samples/SimpleSample/SimpleSample/SimpleSample.cdl +45 -0
  216. data/samples/SimpleSample/SimpleSample/src/tSample.c +77 -0
  217. data/samples/SimpleSample/SimpleSample/src/tSimple.c +48 -0
  218. data/samples/SimpleSample/SimpleSample/src/tecs-types.h +27 -0
  219. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile +51 -0
  220. data/samples/SimpleSample/SimpleSampleOpaqueRPC/Makefile-trace +91 -0
  221. data/samples/SimpleSample/SimpleSampleOpaqueRPC/README.txt +106 -0
  222. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample-trace.cdl +80 -0
  223. data/samples/SimpleSample/SimpleSampleOpaqueRPC/SimpleSample.cdl +77 -0
  224. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSample/Makefile +112 -0
  225. data/samples/SimpleSample/SimpleSampleOpaqueRPC/rSimple/Makefile +109 -0
  226. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSample.c +80 -0
  227. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tSimple.c +47 -0
  228. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tTaskMain.c +66 -0
  229. data/samples/SimpleSample/SimpleSampleOpaqueRPC/src/tecs-types.h +27 -0
  230. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile +125 -0
  231. data/samples/SimpleSample/SimpleSampleTransparentRPC/Makefile-trace +130 -0
  232. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample-trace.cdl +54 -0
  233. data/samples/SimpleSample/SimpleSampleTransparentRPC/SimpleSample.cdl +53 -0
  234. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSample.c +80 -0
  235. data/samples/SimpleSample/SimpleSampleTransparentRPC/src/tSimple.c +54 -0
  236. data/tecscde.gemspec +41 -0
  237. metadata +353 -0
@@ -0,0 +1,6 @@
1
+ class TECSGEN
2
+ PACKAGE = "tecsgen"
3
+ VERSION = "1.G.2"
4
+ COPYRIGHT = "Copyright(c) 2008-2018, TOPPERS project. All rights reserved."
5
+ LICENSE = "TOPPERS License"
6
+ end
@@ -0,0 +1,104 @@
1
+ __tool_info__ ("tecsgen") {
2
+ "tecscde_version" : "0.5.1.0",
3
+ "cde_format_version" : "0.5.0.0",
4
+ "save_date" : "2018-12-12T12:43:49+09:00",
5
+ "base_dir" : [
6
+ "/home/kenji/wc/saitama-univ/tecsgen-1.6.1/samples/FigureSamples/active",
7
+ "c:/cygwin64/home/oyama/TECS/tecsgen/samples/FigureSamples/active"
8
+ ],
9
+ "define_macro" : [
10
+
11
+ ],
12
+ "import_path" : [
13
+ ".",
14
+ "../../../test/cygwin"
15
+ ],
16
+ "direct_import" : [
17
+ "active.cdl"
18
+ ]
19
+ }
20
+
21
+
22
+ /*************************************************
23
+ * TOOL INFORMATION FOR TECSCDE *
24
+ * This information is used by tecscde *
25
+ * please don't touch if you are not familiar *
26
+ ************************************************/
27
+ __tool_info__ ("tecscde") {
28
+ "paper" : {
29
+ "type" : "paper",
30
+ "size" : "A3",
31
+ "orientation" : "LANDSCAPE"
32
+ },
33
+ "cell_list" : [
34
+ { /** cell_list[ 0 ] **/
35
+ "type" : "cell_location",
36
+ "name" : "Cell1",
37
+ "location" : [ 121.0, 10.0, 25.0, 15.0 ],
38
+ "region" : "::",
39
+ "port_location" : [
40
+ {
41
+ "type" : "port_location",
42
+ "port_name" : "eBody",
43
+ "edge" : "EDGE_LEFT",
44
+ "offset" : 4.0
45
+ }
46
+ ]
47
+ },
48
+ { /** cell_list[ 1 ] **/
49
+ "type" : "cell_location",
50
+ "name" : "Task",
51
+ "location" : [ 61.0, 10.0, 25.0, 15.0 ],
52
+ "region" : "::",
53
+ "port_location" : [
54
+ {
55
+ "type" : "port_location",
56
+ "port_name" : "cBody",
57
+ "edge" : "EDGE_RIGHT",
58
+ "offset" : 4.0
59
+ },
60
+ {
61
+ "type" : "port_location",
62
+ "port_name" : "cExceptionBody",
63
+ "edge" : "EDGE_RIGHT",
64
+ "offset" : 12.0
65
+ },
66
+ {
67
+ "type" : "port_location",
68
+ "port_name" : "eTask",
69
+ "edge" : "EDGE_LEFT",
70
+ "offset" : 4.0
71
+ }
72
+ ]
73
+ }
74
+ ],
75
+ "join_list" : [
76
+ { /** join_list[ 0 ] **/
77
+ "type" : "join_location",
78
+ "call_cell" : "Task",
79
+ "call_region" : "::",
80
+ "call_port" : "cBody",
81
+ "entry_cell" : "Cell1",
82
+ "entry_region": "::",
83
+ "entry_port" : "eBody",
84
+ "bar_list" : [
85
+ {
86
+ "type" : "HBar",
87
+ "position" : 96.0
88
+ }, {
89
+ "type" : "VBar",
90
+ "position" : 14.0
91
+ }, {
92
+ "type" : "HBar",
93
+ "position" : 111.0
94
+ }, {
95
+ "type" : "VBar",
96
+ "position" : 14.0
97
+ }, {
98
+ "type" : "HBar",
99
+ "position" : 121.0
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ }
@@ -0,0 +1,20 @@
1
+ import( <cygwin_kernel.cdl> );
2
+
3
+ signature sSignature {
4
+ ER sayHello( [in]int32_t times );
5
+ ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
6
+ };
7
+
8
+ celltype tCelltype1 {
9
+ entry sTaskBody eBody;
10
+ };
11
+
12
+ cell tCelltype1 Cell1 {
13
+ };
14
+
15
+ cell tTask Task {
16
+ cBody = Cell1.eBody;
17
+ priority = 11;
18
+ stackSize = 1024;
19
+ taskAttribute = C_EXP( "TA_ACT" );
20
+ };
@@ -0,0 +1,36 @@
1
+
2
+ #ifndef TECS_NO_GCC_EXTENSION_SUPPORT
3
+
4
+ /*
5
+ * these extension can be eliminated also by spefcifying option
6
+ * --no-gcc-extension-support for tecsgen.
7
+ */
8
+ #ifdef __GNUC__
9
+
10
+ #ifndef __attribute__
11
+ #define __attribute__(x)
12
+ #endif
13
+
14
+ #ifndef __extension__
15
+ #define __extension__
16
+ #endif
17
+
18
+ #ifndef __builtin_va_list
19
+ #define __builtin_va_list va_list
20
+ #endif
21
+
22
+ #ifndef __asm__
23
+ #define __asm__(x)
24
+ #endif
25
+
26
+ #ifndef restrict
27
+ #define restrict
28
+ #endif
29
+
30
+ #endif /* ifdef __GNUC__ */
31
+ #endif /* TECS_NO_GCC_EXTENSION_SUPPORT */
32
+
33
+ /* va_list is not supported in C_parser.y.rb */
34
+ typedef struct { int dummy; } va_list;
35
+
36
+ #include "cygwin_tecs.h"
@@ -0,0 +1,1908 @@
1
+ /* 1 "gen/tmp_C_src.c" */
2
+ /* 1 "<built-in>" */
3
+ /* 1 "<command-line>" */
4
+ /* 1 "/usr/include/stdc-predef.h" 1 3 4 */
5
+ /* 1 "<command-line>" 2 */
6
+ /* 1 "gen/tmp_C_src.c" */
7
+ /* 34 "gen/tmp_C_src.c" */
8
+ typedef struct { int dummy; } va_list;
9
+
10
+ /* 1 "../../../test/cygwin/cygwin_tecs.h" 1 */
11
+ /* 13 "../../../test/cygwin/cygwin_tecs.h" */
12
+ /* 1 "../../../test/cygwin/kernel.h" 1 */
13
+ /* 67 "../../../test/cygwin/kernel.h" */
14
+ /* 1 "../../../test/cygwin/t_stddef.h" 1 */
15
+ /* 68 "../../../test/cygwin/t_stddef.h" */
16
+ /* 1 "../../../test/cygwin/target_stddef.h" 1 */
17
+ /* 1 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h" 1 3 4 */
18
+ /* 9 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h" 3 4 */
19
+ /* 1 "/usr/include/stdint.h" 1 3 4 */
20
+ /* 26 "/usr/include/stdint.h" 3 4 */
21
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 */
22
+ /* 33 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 3 4 */
23
+ /* 1 "/usr/include/features.h" 1 3 4 */
24
+ /* 424 "/usr/include/features.h" 3 4 */
25
+ /* 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4 */
26
+ /* 442 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4 */
27
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
28
+ /* 443 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 */
29
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/long-double.h" 1 3 4 */
30
+ /* 444 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 */
31
+ /* 425 "/usr/include/features.h" 2 3 4 */
32
+ /* 448 "/usr/include/features.h" 3 4 */
33
+ /* 1 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 1 3 4 */
34
+ /* 10 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 3 4 */
35
+ /* 1 "/usr/include/x86_64-linux-gnu/gnu/stubs-64.h" 1 3 4 */
36
+ /* 11 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4 */
37
+ /* 449 "/usr/include/features.h" 2 3 4 */
38
+ /* 34 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 2 3 4 */
39
+ /* 27 "/usr/include/stdint.h" 2 3 4 */
40
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types.h" 1 3 4 */
41
+ /* 27 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 */
42
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
43
+ /* 28 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 */
44
+
45
+
46
+
47
+ /* 30 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 */
48
+ typedef unsigned char __u_char;
49
+ typedef unsigned short int __u_short;
50
+ typedef unsigned int __u_int;
51
+ typedef unsigned long int __u_long;
52
+
53
+
54
+ typedef signed char __int8_t;
55
+ typedef unsigned char __uint8_t;
56
+ typedef signed short int __int16_t;
57
+ typedef unsigned short int __uint16_t;
58
+ typedef signed int __int32_t;
59
+ typedef unsigned int __uint32_t;
60
+
61
+ typedef signed long int __int64_t;
62
+ typedef unsigned long int __uint64_t;
63
+
64
+
65
+
66
+
67
+
68
+
69
+ typedef __int8_t __int_least8_t;
70
+ typedef __uint8_t __uint_least8_t;
71
+ typedef __int16_t __int_least16_t;
72
+ typedef __uint16_t __uint_least16_t;
73
+ typedef __int32_t __int_least32_t;
74
+ typedef __uint32_t __uint_least32_t;
75
+ typedef __int64_t __int_least64_t;
76
+ typedef __uint64_t __uint_least64_t;
77
+
78
+
79
+
80
+ typedef long int __quad_t;
81
+ typedef unsigned long int __u_quad_t;
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ typedef long int __intmax_t;
90
+ typedef unsigned long int __uintmax_t;
91
+ /* 140 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 */
92
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/typesizes.h" 1 3 4 */
93
+ /* 141 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 */
94
+
95
+
96
+ typedef unsigned long int __dev_t;
97
+ typedef unsigned int __uid_t;
98
+ typedef unsigned int __gid_t;
99
+ typedef unsigned long int __ino_t;
100
+ typedef unsigned long int __ino64_t;
101
+ typedef unsigned int __mode_t;
102
+ typedef unsigned long int __nlink_t;
103
+ typedef long int __off_t;
104
+ typedef long int __off64_t;
105
+ typedef int __pid_t;
106
+ typedef struct { int __val[2]; } __fsid_t;
107
+ typedef long int __clock_t;
108
+ typedef unsigned long int __rlim_t;
109
+ typedef unsigned long int __rlim64_t;
110
+ typedef unsigned int __id_t;
111
+ typedef long int __time_t;
112
+ typedef unsigned int __useconds_t;
113
+ typedef long int __suseconds_t;
114
+
115
+ typedef int __daddr_t;
116
+ typedef int __key_t;
117
+
118
+
119
+ typedef int __clockid_t;
120
+
121
+
122
+ typedef void * __timer_t;
123
+
124
+
125
+ typedef long int __blksize_t;
126
+
127
+
128
+
129
+
130
+ typedef long int __blkcnt_t;
131
+ typedef long int __blkcnt64_t;
132
+
133
+
134
+ typedef unsigned long int __fsblkcnt_t;
135
+ typedef unsigned long int __fsblkcnt64_t;
136
+
137
+
138
+ typedef unsigned long int __fsfilcnt_t;
139
+ typedef unsigned long int __fsfilcnt64_t;
140
+
141
+
142
+ typedef long int __fsword_t;
143
+
144
+ typedef long int __ssize_t;
145
+
146
+
147
+ typedef long int __syscall_slong_t;
148
+
149
+ typedef unsigned long int __syscall_ulong_t;
150
+
151
+
152
+
153
+ typedef __off64_t __loff_t;
154
+ typedef char *__caddr_t;
155
+
156
+
157
+ typedef long int __intptr_t;
158
+
159
+
160
+ typedef unsigned int __socklen_t;
161
+
162
+
163
+
164
+
165
+ typedef int __sig_atomic_t;
166
+ /* 28 "/usr/include/stdint.h" 2 3 4 */
167
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wchar.h" 1 3 4 */
168
+ /* 29 "/usr/include/stdint.h" 2 3 4 */
169
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
170
+ /* 30 "/usr/include/stdint.h" 2 3 4 */
171
+
172
+
173
+
174
+
175
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 1 3 4 */
176
+ /* 24 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 3 4 */
177
+ typedef __int8_t int8_t;
178
+ typedef __int16_t int16_t;
179
+ typedef __int32_t int32_t;
180
+ typedef __int64_t int64_t;
181
+ /* 35 "/usr/include/stdint.h" 2 3 4 */
182
+
183
+
184
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 1 3 4 */
185
+ /* 24 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 3 4 */
186
+ typedef __uint8_t uint8_t;
187
+ typedef __uint16_t uint16_t;
188
+ typedef __uint32_t uint32_t;
189
+ typedef __uint64_t uint64_t;
190
+ /* 38 "/usr/include/stdint.h" 2 3 4 */
191
+
192
+
193
+
194
+
195
+
196
+ typedef __int_least8_t int_least8_t;
197
+ typedef __int_least16_t int_least16_t;
198
+ typedef __int_least32_t int_least32_t;
199
+ typedef __int_least64_t int_least64_t;
200
+
201
+
202
+ typedef __uint_least8_t uint_least8_t;
203
+ typedef __uint_least16_t uint_least16_t;
204
+ typedef __uint_least32_t uint_least32_t;
205
+ typedef __uint_least64_t uint_least64_t;
206
+
207
+
208
+
209
+
210
+
211
+ typedef signed char int_fast8_t;
212
+
213
+ typedef long int int_fast16_t;
214
+ typedef long int int_fast32_t;
215
+ typedef long int int_fast64_t;
216
+ /* 71 "/usr/include/stdint.h" 3 4 */
217
+ typedef unsigned char uint_fast8_t;
218
+
219
+ typedef unsigned long int uint_fast16_t;
220
+ typedef unsigned long int uint_fast32_t;
221
+ typedef unsigned long int uint_fast64_t;
222
+ /* 87 "/usr/include/stdint.h" 3 4 */
223
+ typedef long int intptr_t;
224
+
225
+
226
+ typedef unsigned long int uintptr_t;
227
+ /* 101 "/usr/include/stdint.h" 3 4 */
228
+ typedef __intmax_t intmax_t;
229
+ typedef __uintmax_t uintmax_t;
230
+ /* 10 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h" 2 3 4 */
231
+ /* 2 "../../../test/cygwin/target_stddef.h" 2 */
232
+
233
+
234
+ /* 3 "../../../test/cygwin/target_stddef.h" */
235
+ typedef float float32_t;
236
+ typedef double double64_t;
237
+ /* 69 "../../../test/cygwin/t_stddef.h" 2 */
238
+ /* 91 "../../../test/cygwin/t_stddef.h" */
239
+ struct TOPPERS_dummy_t { int TOPPERS_dummy_field; };
240
+ typedef void (*TOPPERS_fp_t)(struct TOPPERS_dummy_t);
241
+
242
+
243
+
244
+
245
+
246
+
247
+ typedef int bool_t;
248
+
249
+
250
+ typedef signed int int_t;
251
+ typedef unsigned int uint_t;
252
+
253
+ typedef signed long long_t;
254
+ typedef unsigned long ulong_t;
255
+
256
+ typedef int_t FN;
257
+ typedef int_t ER;
258
+
259
+ typedef int_t ID;
260
+
261
+ typedef uint_t ATR;
262
+ typedef uint_t STAT;
263
+ typedef uint_t MODE;
264
+ typedef int_t PRI;
265
+ typedef uintptr_t SIZE;
266
+
267
+ typedef int_t TMO;
268
+ typedef uint_t RELTIM;
269
+ typedef ulong_t SYSTIM;
270
+ typedef ulong_t SYSUTM;
271
+
272
+ typedef TOPPERS_fp_t FP;
273
+
274
+ typedef int_t ER_BOOL;
275
+ typedef int_t ER_ID;
276
+ typedef int_t ER_UINT;
277
+
278
+ typedef uint32_t ACPTN;
279
+ typedef struct acvct {
280
+ ACPTN acptn1;
281
+ ACPTN acptn2;
282
+ ACPTN acptn3;
283
+ ACPTN acptn4;
284
+ } ACVCT;
285
+ /* 68 "../../../test/cygwin/kernel.h" 2 */
286
+
287
+
288
+
289
+
290
+ /* 1 "../../../test/cygwin/target_kernel.h" 1 */
291
+ /* 73 "../../../test/cygwin/kernel.h" 2 */
292
+ /* 83 "../../../test/cygwin/kernel.h" */
293
+ typedef uint_t TEXPTN;
294
+ typedef uint_t FLGPTN;
295
+ typedef uint_t INTNO;
296
+ typedef uint_t INHNO;
297
+ typedef uint_t EXCNO;
298
+
299
+
300
+
301
+
302
+ typedef void (*TASK)(intptr_t exinf);
303
+ typedef void (*TEXRTN)(TEXPTN texptn, intptr_t exinf);
304
+ typedef void (*CYCHDR)(intptr_t exinf);
305
+ typedef void (*ALMHDR)(intptr_t exinf);
306
+ typedef void (*ISR)(intptr_t exinf);
307
+ typedef void (*INTHDR)(void);
308
+ typedef void (*EXCHDR)(void *p_excinf);
309
+ typedef void (*INIRTN)(intptr_t exinf);
310
+ typedef void (*TERRTN)(intptr_t exinf);
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+ typedef intptr_t STK_T;
319
+
320
+
321
+
322
+
323
+ typedef intptr_t MPF_T;
324
+
325
+
326
+
327
+
328
+ typedef struct t_msg {
329
+ struct t_msg *pk_next;
330
+ } T_MSG;
331
+
332
+ typedef struct t_msg_pri {
333
+ T_MSG msgque;
334
+ PRI msgpri;
335
+ } T_MSG_PRI;
336
+
337
+
338
+
339
+
340
+ typedef struct t_rtsk {
341
+ STAT tskstat;
342
+ PRI tskpri;
343
+ PRI tskbpri;
344
+ STAT tskwait;
345
+ ID wobjid;
346
+ TMO lefttmo;
347
+ uint_t actcnt;
348
+ uint_t wupcnt;
349
+ } T_RTSK;
350
+
351
+ typedef struct t_rtex {
352
+ STAT texstat;
353
+ TEXPTN pndptn;
354
+ } T_RTEX;
355
+
356
+ typedef struct t_rsem {
357
+ ID wtskid;
358
+ uint_t semcnt;
359
+ } T_RSEM;
360
+
361
+ typedef struct t_rflg {
362
+ ID wtskid;
363
+ FLGPTN flgptn;
364
+ } T_RFLG;
365
+
366
+ typedef struct t_rdtq {
367
+ ID stskid;
368
+ ID rtskid;
369
+ uint_t sdtqcnt;
370
+ } T_RDTQ;
371
+
372
+ typedef struct t_rpdq {
373
+ ID stskid;
374
+
375
+ ID rtskid;
376
+
377
+ uint_t spdqcnt;
378
+
379
+ } T_RPDQ;
380
+
381
+ typedef struct t_rmbx {
382
+ ID wtskid;
383
+ T_MSG *pk_msg;
384
+
385
+ } T_RMBX;
386
+
387
+ typedef struct t_rmpf {
388
+ ID wtskid;
389
+
390
+ uint_t fblkcnt;
391
+
392
+ } T_RMPF;
393
+
394
+ typedef struct t_rcyc {
395
+ STAT cycstat;
396
+ RELTIM lefttim;
397
+ } T_RCYC;
398
+
399
+ typedef struct t_ralm {
400
+ STAT almstat;
401
+ RELTIM lefttim;
402
+ } T_RALM;
403
+ /* 201 "../../../test/cygwin/kernel.h" */
404
+ extern ER act_tsk(ID tskid) ;
405
+ extern ER iact_tsk(ID tskid) ;
406
+ extern ER_UINT can_act(ID tskid) ;
407
+ extern ER ext_tsk(void) ;
408
+ extern ER ter_tsk(ID tskid) ;
409
+ extern ER chg_pri(ID tskid, PRI tskpri) ;
410
+ extern ER get_pri(ID tskid, PRI *p_tskpri) ;
411
+ extern ER get_inf(intptr_t *p_exinf) ;
412
+ extern ER ref_tsk(ID tskid, T_RTSK *pk_rtsk) ;
413
+
414
+
415
+
416
+
417
+ extern ER slp_tsk(void) ;
418
+ extern ER tslp_tsk(TMO tmout) ;
419
+ extern ER wup_tsk(ID tskid) ;
420
+ extern ER iwup_tsk(ID tskid) ;
421
+ extern ER_UINT can_wup(ID tskid) ;
422
+ extern ER rel_wai(ID tskid) ;
423
+ extern ER irel_wai(ID tskid) ;
424
+ extern ER sus_tsk(ID tskid) ;
425
+ extern ER rsm_tsk(ID tskid) ;
426
+ extern ER dly_tsk(RELTIM dlytim) ;
427
+
428
+
429
+
430
+
431
+ extern ER ras_tex(ID tskid, TEXPTN rasptn) ;
432
+ extern ER iras_tex(ID tskid, TEXPTN rasptn) ;
433
+ extern ER dis_tex(void) ;
434
+ extern ER ena_tex(void) ;
435
+ extern bool_t sns_tex(void) ;
436
+ extern ER ref_tex(ID tskid, T_RTEX *pk_rtex) ;
437
+
438
+
439
+
440
+
441
+ extern ER sig_sem(ID semid) ;
442
+ extern ER isig_sem(ID semid) ;
443
+ extern ER wai_sem(ID semid) ;
444
+ extern ER pol_sem(ID semid) ;
445
+ extern ER twai_sem(ID semid, TMO tmout) ;
446
+ extern ER ini_sem(ID semid) ;
447
+ extern ER ref_sem(ID semid, T_RSEM *pk_rsem) ;
448
+
449
+ extern ER set_flg(ID flgid, FLGPTN setptn) ;
450
+ extern ER iset_flg(ID flgid, FLGPTN setptn) ;
451
+ extern ER clr_flg(ID flgid, FLGPTN clrptn) ;
452
+ extern ER wai_flg(ID flgid, FLGPTN waiptn,
453
+ MODE wfmode, FLGPTN *p_flgptn) ;
454
+ extern ER pol_flg(ID flgid, FLGPTN waiptn,
455
+ MODE wfmode, FLGPTN *p_flgptn) ;
456
+ extern ER twai_flg(ID flgid, FLGPTN waiptn,
457
+ MODE wfmode, FLGPTN *p_flgptn, TMO tmout) ;
458
+ extern ER ini_flg(ID flgid) ;
459
+ extern ER ref_flg(ID flgid, T_RFLG *pk_rflg) ;
460
+
461
+ extern ER snd_dtq(ID dtqid, intptr_t data) ;
462
+ extern ER psnd_dtq(ID dtqid, intptr_t data) ;
463
+ extern ER ipsnd_dtq(ID dtqid, intptr_t data) ;
464
+ extern ER tsnd_dtq(ID dtqid, intptr_t data, TMO tmout) ;
465
+ extern ER fsnd_dtq(ID dtqid, intptr_t data) ;
466
+ extern ER ifsnd_dtq(ID dtqid, intptr_t data) ;
467
+ extern ER rcv_dtq(ID dtqid, intptr_t *p_data) ;
468
+ extern ER prcv_dtq(ID dtqid, intptr_t *p_data) ;
469
+ extern ER trcv_dtq(ID dtqid, intptr_t *p_data, TMO tmout) ;
470
+ extern ER ini_dtq(ID dtqid) ;
471
+ extern ER ref_dtq(ID dtqid, T_RDTQ *pk_rdtq) ;
472
+
473
+ extern ER snd_pdq(ID pdqid, intptr_t data, PRI datapri) ;
474
+ extern ER psnd_pdq(ID pdqid, intptr_t data, PRI datapri) ;
475
+ extern ER ipsnd_pdq(ID pdqid, intptr_t data, PRI datapri) ;
476
+ extern ER tsnd_pdq(ID pdqid, intptr_t data,
477
+ PRI datapri, TMO tmout) ;
478
+ extern ER rcv_pdq(ID pdqid, intptr_t *p_data, PRI *p_datapri) ;
479
+ extern ER prcv_pdq(ID pdqid, intptr_t *p_data, PRI *p_datapri) ;
480
+ extern ER trcv_pdq(ID pdqid, intptr_t *p_data,
481
+ PRI *p_datapri, TMO tmout) ;
482
+ extern ER ini_pdq(ID pdqid) ;
483
+ extern ER ref_pdq(ID pdqid, T_RPDQ *pk_rpdq) ;
484
+
485
+ extern ER snd_mbx(ID mbxid, T_MSG *pk_msg) ;
486
+ extern ER rcv_mbx(ID mbxid, T_MSG **ppk_msg) ;
487
+ extern ER prcv_mbx(ID mbxid, T_MSG **ppk_msg) ;
488
+ extern ER trcv_mbx(ID mbxid, T_MSG **ppk_msg, TMO tmout) ;
489
+ extern ER ini_mbx(ID mbxid) ;
490
+ extern ER ref_mbx(ID mbxid, T_RMBX *pk_rmbx) ;
491
+
492
+
493
+
494
+
495
+ extern ER get_mpf(ID mpfid, void **p_blk) ;
496
+ extern ER pget_mpf(ID mpfid, void **p_blk) ;
497
+ extern ER tget_mpf(ID mpfid, void **p_blk, TMO tmout) ;
498
+ extern ER rel_mpf(ID mpfid, void *blk) ;
499
+ extern ER ini_mpf(ID mpfid) ;
500
+ extern ER ref_mpf(ID mpfid, T_RMPF *pk_rmpf) ;
501
+
502
+
503
+
504
+
505
+ extern ER get_tim(SYSTIM *p_systim) ;
506
+ extern ER get_utm(SYSUTM *p_sysutm) ;
507
+
508
+ extern ER sta_cyc(ID cycid) ;
509
+ extern ER stp_cyc(ID cycid) ;
510
+ extern ER ref_cyc(ID cycid, T_RCYC *pk_rcyc) ;
511
+
512
+ extern ER sta_alm(ID almid, RELTIM almtim) ;
513
+ extern ER ista_alm(ID almid, RELTIM almtim) ;
514
+ extern ER stp_alm(ID almid) ;
515
+ extern ER istp_alm(ID almid) ;
516
+ extern ER ref_alm(ID almid, T_RALM *pk_ralm) ;
517
+
518
+
519
+
520
+
521
+ extern ER rot_rdq(PRI tskpri) ;
522
+ extern ER irot_rdq(PRI tskpri) ;
523
+ extern ER get_tid(ID *p_tskid) ;
524
+ extern ER iget_tid(ID *p_tskid) ;
525
+ extern ER loc_cpu(void) ;
526
+ extern ER iloc_cpu(void) ;
527
+ extern ER unl_cpu(void) ;
528
+ extern ER iunl_cpu(void) ;
529
+ extern ER dis_dsp(void) ;
530
+ extern ER ena_dsp(void) ;
531
+ extern bool_t sns_ctx(void) ;
532
+ extern bool_t sns_loc(void) ;
533
+ extern bool_t sns_dsp(void) ;
534
+ extern bool_t sns_dpn(void) ;
535
+ extern bool_t sns_ker(void) ;
536
+ extern ER ext_ker(void) ;
537
+
538
+
539
+
540
+
541
+ extern ER dis_int(INTNO intno) ;
542
+ extern ER ena_int(INTNO intno) ;
543
+ extern ER chg_ipm(PRI intpri) ;
544
+ extern ER get_ipm(PRI *p_intpri) ;
545
+
546
+
547
+
548
+
549
+ extern bool_t xsns_dpn(void *p_excinf) ;
550
+ extern bool_t xsns_xpn(void *p_excinf) ;
551
+ /* 14 "../../../test/cygwin/cygwin_tecs.h" 2 */
552
+ /* 1 "/home/kenji/wc/saitama-univ/tecsgen-1.6.1/tecsgen/tecs/tecs.h" 1 */
553
+ /* 46 "/home/kenji/wc/saitama-univ/tecsgen-1.6.1/tecsgen/tecs/tecs.h" */
554
+ typedef struct tag_int128_t { int64_t hi; int64_t lo; } int128_t;
555
+ typedef struct tag_uint128_t { int64_t hi; int64_t lo; } uint128_t;
556
+
557
+
558
+
559
+
560
+ typedef short short_t;
561
+ typedef unsigned short ushort_t;
562
+
563
+
564
+
565
+
566
+ typedef char char_t;
567
+
568
+
569
+ typedef signed char schar_t;
570
+ typedef unsigned char uchar_t;
571
+ /* 15 "../../../test/cygwin/cygwin_tecs.h" 2 */
572
+ /* 1 "../../../test/cygwin/tecs_pthread_adaptor.h" 1 */
573
+ /* 22 "../../../test/cygwin/tecs_pthread_adaptor.h" */
574
+ /* 1 "/usr/include/pthread.h" 1 3 4 */
575
+ /* 22 "/usr/include/pthread.h" 3 4 */
576
+ /* 1 "/usr/include/endian.h" 1 3 4 */
577
+ /* 36 "/usr/include/endian.h" 3 4 */
578
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/endian.h" 1 3 4 */
579
+ /* 37 "/usr/include/endian.h" 2 3 4 */
580
+ /* 60 "/usr/include/endian.h" 3 4 */
581
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 1 3 4 */
582
+ /* 33 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 */
583
+
584
+ /* 33 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 */
585
+ static __inline __uint16_t
586
+ __bswap_16 (__uint16_t __bsx)
587
+ {
588
+
589
+ return __builtin_bswap16 (__bsx);
590
+
591
+
592
+
593
+ }
594
+
595
+
596
+
597
+
598
+
599
+
600
+ static __inline __uint32_t
601
+ __bswap_32 (__uint32_t __bsx)
602
+ {
603
+
604
+ return __builtin_bswap32 (__bsx);
605
+
606
+
607
+
608
+ }
609
+ /* 69 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 */
610
+ static __inline __uint64_t
611
+ __bswap_64 (__uint64_t __bsx)
612
+ {
613
+
614
+ return __builtin_bswap64 (__bsx);
615
+
616
+
617
+
618
+ }
619
+ /* 61 "/usr/include/endian.h" 2 3 4 */
620
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 1 3 4 */
621
+ /* 32 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 3 4 */
622
+ static __inline __uint16_t
623
+ __uint16_identity (__uint16_t __x)
624
+ {
625
+ return __x;
626
+ }
627
+
628
+ static __inline __uint32_t
629
+ __uint32_identity (__uint32_t __x)
630
+ {
631
+ return __x;
632
+ }
633
+
634
+ static __inline __uint64_t
635
+ __uint64_identity (__uint64_t __x)
636
+ {
637
+ return __x;
638
+ }
639
+ /* 62 "/usr/include/endian.h" 2 3 4 */
640
+ /* 23 "/usr/include/pthread.h" 2 3 4 */
641
+ /* 1 "/usr/include/sched.h" 1 3 4 */
642
+ /* 29 "/usr/include/sched.h" 3 4 */
643
+ /* 1 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h" 1 3 4 */
644
+ /* 216 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h" 3 4 */
645
+ typedef long unsigned int size_t;
646
+ /* 30 "/usr/include/sched.h" 2 3 4 */
647
+
648
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/time_t.h" 1 3 4 */
649
+
650
+
651
+
652
+
653
+
654
+
655
+ typedef __time_t time_t;
656
+ /* 32 "/usr/include/sched.h" 2 3 4 */
657
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 1 3 4 */
658
+ /* 9 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 3 4 */
659
+ struct timespec
660
+ {
661
+ __time_t tv_sec;
662
+ __syscall_slong_t tv_nsec;
663
+ };
664
+ /* 33 "/usr/include/sched.h" 2 3 4 */
665
+
666
+
667
+
668
+
669
+
670
+ typedef __pid_t pid_t;
671
+
672
+
673
+
674
+
675
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/sched.h" 1 3 4 */
676
+ /* 74 "/usr/include/x86_64-linux-gnu/bits/sched.h" 3 4 */
677
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h" 1 3 4 */
678
+ /* 23 "/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h" 3 4 */
679
+ struct sched_param
680
+ {
681
+ int sched_priority;
682
+ };
683
+ /* 75 "/usr/include/x86_64-linux-gnu/bits/sched.h" 2 3 4 */
684
+
685
+
686
+ /* 93 "/usr/include/x86_64-linux-gnu/bits/sched.h" 3 4 */
687
+
688
+ /* 44 "/usr/include/sched.h" 2 3 4 */
689
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 1 3 4 */
690
+ /* 32 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 3 4 */
691
+ typedef unsigned long int __cpu_mask;
692
+
693
+
694
+
695
+
696
+
697
+
698
+ typedef struct
699
+ {
700
+ __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
701
+ } cpu_set_t;
702
+ /* 115 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 3 4 */
703
+
704
+
705
+ extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
706
+ ;
707
+ extern cpu_set_t *__sched_cpualloc (size_t __count) ;
708
+ extern void __sched_cpufree (cpu_set_t *__set) ;
709
+
710
+
711
+ /* 45 "/usr/include/sched.h" 2 3 4 */
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+ extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
722
+ ;
723
+
724
+
725
+ extern int sched_getparam (__pid_t __pid, struct sched_param *__param) ;
726
+
727
+
728
+ extern int sched_setscheduler (__pid_t __pid, int __policy,
729
+ const struct sched_param *__param) ;
730
+
731
+
732
+ extern int sched_getscheduler (__pid_t __pid) ;
733
+
734
+
735
+ extern int sched_yield (void) ;
736
+
737
+
738
+ extern int sched_get_priority_max (int __algorithm) ;
739
+
740
+
741
+ extern int sched_get_priority_min (int __algorithm) ;
742
+
743
+
744
+ extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) ;
745
+ /* 129 "/usr/include/sched.h" 3 4 */
746
+
747
+ /* 24 "/usr/include/pthread.h" 2 3 4 */
748
+ /* 1 "/usr/include/time.h" 1 3 4 */
749
+ /* 29 "/usr/include/time.h" 3 4 */
750
+ /* 1 "/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h" 1 3 4 */
751
+ /* 30 "/usr/include/time.h" 2 3 4 */
752
+
753
+
754
+
755
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/time.h" 1 3 4 */
756
+ /* 34 "/usr/include/time.h" 2 3 4 */
757
+
758
+
759
+
760
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/clock_t.h" 1 3 4 */
761
+
762
+
763
+
764
+
765
+
766
+
767
+ typedef __clock_t clock_t;
768
+ /* 38 "/usr/include/time.h" 2 3 4 */
769
+
770
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h" 1 3 4 */
771
+
772
+
773
+
774
+
775
+
776
+
777
+ struct tm
778
+ {
779
+ int tm_sec;
780
+ int tm_min;
781
+ int tm_hour;
782
+ int tm_mday;
783
+ int tm_mon;
784
+ int tm_year;
785
+ int tm_wday;
786
+ int tm_yday;
787
+ int tm_isdst;
788
+
789
+
790
+ long int tm_gmtoff;
791
+ const char *tm_zone;
792
+
793
+
794
+
795
+
796
+ };
797
+ /* 40 "/usr/include/time.h" 2 3 4 */
798
+
799
+
800
+
801
+
802
+
803
+
804
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h" 1 3 4 */
805
+
806
+
807
+
808
+
809
+
810
+
811
+ typedef __clockid_t clockid_t;
812
+ /* 47 "/usr/include/time.h" 2 3 4 */
813
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/timer_t.h" 1 3 4 */
814
+
815
+
816
+
817
+
818
+
819
+
820
+ typedef __timer_t timer_t;
821
+ /* 48 "/usr/include/time.h" 2 3 4 */
822
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h" 1 3 4 */
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+ struct itimerspec
831
+ {
832
+ struct timespec it_interval;
833
+ struct timespec it_value;
834
+ };
835
+ /* 49 "/usr/include/time.h" 2 3 4 */
836
+ struct sigevent;
837
+ /* 60 "/usr/include/time.h" 3 4 */
838
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 1 3 4 */
839
+ /* 22 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 3 4 */
840
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 1 3 4 */
841
+ /* 28 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 3 4 */
842
+ struct __locale_struct
843
+ {
844
+
845
+ struct __locale_data *__locales[13];
846
+
847
+
848
+ const unsigned short int *__ctype_b;
849
+ const int *__ctype_tolower;
850
+ const int *__ctype_toupper;
851
+
852
+
853
+ const char *__names[13];
854
+ };
855
+
856
+ typedef struct __locale_struct *__locale_t;
857
+ /* 23 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 2 3 4 */
858
+
859
+ typedef __locale_t locale_t;
860
+ /* 61 "/usr/include/time.h" 2 3 4 */
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+ extern clock_t clock (void) ;
873
+
874
+
875
+ extern time_t time (time_t *__timer) ;
876
+
877
+
878
+ extern double difftime (time_t __time1, time_t __time0)
879
+ ;
880
+
881
+
882
+ extern time_t mktime (struct tm *__tp) ;
883
+
884
+
885
+
886
+
887
+
888
+ extern size_t strftime (char *__restrict __s, size_t __maxsize,
889
+ const char *__restrict __format,
890
+ const struct tm *__restrict __tp) ;
891
+ /* 104 "/usr/include/time.h" 3 4 */
892
+ extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
893
+ const char *__restrict __format,
894
+ const struct tm *__restrict __tp,
895
+ locale_t __loc) ;
896
+ /* 119 "/usr/include/time.h" 3 4 */
897
+ extern struct tm *gmtime (const time_t *__timer) ;
898
+
899
+
900
+
901
+ extern struct tm *localtime (const time_t *__timer) ;
902
+
903
+
904
+
905
+
906
+ extern struct tm *gmtime_r (const time_t *__restrict __timer,
907
+ struct tm *__restrict __tp) ;
908
+
909
+
910
+
911
+ extern struct tm *localtime_r (const time_t *__restrict __timer,
912
+ struct tm *__restrict __tp) ;
913
+
914
+
915
+
916
+
917
+ extern char *asctime (const struct tm *__tp) ;
918
+
919
+
920
+ extern char *ctime (const time_t *__timer) ;
921
+
922
+
923
+
924
+
925
+
926
+
927
+ extern char *asctime_r (const struct tm *__restrict __tp,
928
+ char *__restrict __buf) ;
929
+
930
+
931
+ extern char *ctime_r (const time_t *__restrict __timer,
932
+ char *__restrict __buf) ;
933
+
934
+
935
+
936
+
937
+ extern char *__tzname[2];
938
+ extern int __daylight;
939
+ extern long int __timezone;
940
+
941
+
942
+
943
+
944
+ extern char *tzname[2];
945
+
946
+
947
+
948
+ extern void tzset (void) ;
949
+
950
+
951
+
952
+ extern int daylight;
953
+ extern long int timezone;
954
+
955
+
956
+
957
+
958
+
959
+ extern int stime (const time_t *__when) ;
960
+ /* 196 "/usr/include/time.h" 3 4 */
961
+ extern time_t timegm (struct tm *__tp) ;
962
+
963
+
964
+ extern time_t timelocal (struct tm *__tp) ;
965
+
966
+
967
+ extern int dysize (int __year) ;
968
+ /* 211 "/usr/include/time.h" 3 4 */
969
+ extern int nanosleep (const struct timespec *__requested_time,
970
+ struct timespec *__remaining);
971
+
972
+
973
+
974
+ extern int clock_getres (clockid_t __clock_id, struct timespec *__res) ;
975
+
976
+
977
+ extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) ;
978
+
979
+
980
+ extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
981
+ ;
982
+
983
+
984
+
985
+
986
+
987
+
988
+ extern int clock_nanosleep (clockid_t __clock_id, int __flags,
989
+ const struct timespec *__req,
990
+ struct timespec *__rem);
991
+
992
+
993
+ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) ;
994
+
995
+
996
+
997
+
998
+ extern int timer_create (clockid_t __clock_id,
999
+ struct sigevent *__restrict __evp,
1000
+ timer_t *__restrict __timerid) ;
1001
+
1002
+
1003
+ extern int timer_delete (timer_t __timerid) ;
1004
+
1005
+
1006
+ extern int timer_settime (timer_t __timerid, int __flags,
1007
+ const struct itimerspec *__restrict __value,
1008
+ struct itimerspec *__restrict __ovalue) ;
1009
+
1010
+
1011
+ extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
1012
+ ;
1013
+
1014
+
1015
+ extern int timer_getoverrun (timer_t __timerid) ;
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+ extern int timespec_get (struct timespec *__ts, int __base)
1022
+ ;
1023
+ /* 307 "/usr/include/time.h" 3 4 */
1024
+
1025
+ /* 25 "/usr/include/pthread.h" 2 3 4 */
1026
+
1027
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 1 3 4 */
1028
+ /* 23 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 */
1029
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 1 3 4 */
1030
+ /* 77 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 */
1031
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 1 3 4 */
1032
+ /* 21 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 3 4 */
1033
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
1034
+ /* 22 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 2 3 4 */
1035
+ /* 65 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 3 4 */
1036
+ struct __pthread_rwlock_arch_t
1037
+ {
1038
+ unsigned int __readers;
1039
+ unsigned int __writers;
1040
+ unsigned int __wrphase_futex;
1041
+ unsigned int __writers_futex;
1042
+ unsigned int __pad3;
1043
+ unsigned int __pad4;
1044
+
1045
+ int __cur_writer;
1046
+ int __shared;
1047
+ signed char __rwelision;
1048
+
1049
+
1050
+
1051
+
1052
+ unsigned char __pad1[7];
1053
+
1054
+
1055
+ unsigned long int __pad2;
1056
+
1057
+
1058
+ unsigned int __flags;
1059
+ /* 99 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 3 4 */
1060
+ };
1061
+ /* 78 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 */
1062
+
1063
+
1064
+
1065
+
1066
+ typedef struct __pthread_internal_list
1067
+ {
1068
+ struct __pthread_internal_list *__prev;
1069
+ struct __pthread_internal_list *__next;
1070
+ } __pthread_list_t;
1071
+ /* 118 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 */
1072
+ struct __pthread_mutex_s
1073
+ {
1074
+ int __lock ;
1075
+ unsigned int __count;
1076
+ int __owner;
1077
+
1078
+ unsigned int __nusers;
1079
+ /* 148 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 */
1080
+ int __kind;
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+ short __spins; short __elision;
1087
+ __pthread_list_t __list;
1088
+ /* 165 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 */
1089
+
1090
+ };
1091
+
1092
+
1093
+
1094
+
1095
+ struct __pthread_cond_s
1096
+ {
1097
+ union
1098
+ {
1099
+ unsigned long long int __wseq;
1100
+ struct
1101
+ {
1102
+ unsigned int __low;
1103
+ unsigned int __high;
1104
+ } __wseq32;
1105
+ };
1106
+ union
1107
+ {
1108
+ unsigned long long int __g1_start;
1109
+ struct
1110
+ {
1111
+ unsigned int __low;
1112
+ unsigned int __high;
1113
+ } __g1_start32;
1114
+ };
1115
+ unsigned int __g_refs[2] ;
1116
+ unsigned int __g_size[2];
1117
+ unsigned int __g1_orig_size;
1118
+ unsigned int __wrefs;
1119
+ unsigned int __g_signals[2];
1120
+ };
1121
+ /* 24 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 2 3 4 */
1122
+
1123
+
1124
+
1125
+ typedef unsigned long int pthread_t;
1126
+
1127
+
1128
+
1129
+
1130
+ typedef union
1131
+ {
1132
+ char __size[4];
1133
+ int __align;
1134
+ } pthread_mutexattr_t;
1135
+
1136
+
1137
+
1138
+
1139
+ typedef union
1140
+ {
1141
+ char __size[4];
1142
+ int __align;
1143
+ } pthread_condattr_t;
1144
+
1145
+
1146
+
1147
+ typedef unsigned int pthread_key_t;
1148
+
1149
+
1150
+
1151
+ typedef int pthread_once_t;
1152
+
1153
+
1154
+ union pthread_attr_t
1155
+ {
1156
+ char __size[56];
1157
+ long int __align;
1158
+ };
1159
+
1160
+ typedef union pthread_attr_t pthread_attr_t;
1161
+
1162
+
1163
+
1164
+
1165
+ typedef union
1166
+ {
1167
+ struct __pthread_mutex_s __data;
1168
+ char __size[40];
1169
+ long int __align;
1170
+ } pthread_mutex_t;
1171
+
1172
+
1173
+ typedef union
1174
+ {
1175
+ struct __pthread_cond_s __data;
1176
+ char __size[48];
1177
+ long long int __align;
1178
+ } pthread_cond_t;
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+ typedef union
1185
+ {
1186
+ struct __pthread_rwlock_arch_t __data;
1187
+ char __size[56];
1188
+ long int __align;
1189
+ } pthread_rwlock_t;
1190
+
1191
+ typedef union
1192
+ {
1193
+ char __size[8];
1194
+ long int __align;
1195
+ } pthread_rwlockattr_t;
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+ typedef volatile int pthread_spinlock_t;
1202
+
1203
+
1204
+
1205
+
1206
+ typedef union
1207
+ {
1208
+ char __size[32];
1209
+ long int __align;
1210
+ } pthread_barrier_t;
1211
+
1212
+ typedef union
1213
+ {
1214
+ char __size[4];
1215
+ int __align;
1216
+ } pthread_barrierattr_t;
1217
+ /* 27 "/usr/include/pthread.h" 2 3 4 */
1218
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 1 3 4 */
1219
+ /* 26 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 3 4 */
1220
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
1221
+ /* 27 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 2 3 4 */
1222
+
1223
+
1224
+
1225
+
1226
+ typedef long int __jmp_buf[8];
1227
+ /* 28 "/usr/include/pthread.h" 2 3 4 */
1228
+ /* 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 */
1229
+ /* 29 "/usr/include/pthread.h" 2 3 4 */
1230
+
1231
+
1232
+
1233
+
1234
+ enum
1235
+ {
1236
+ PTHREAD_CREATE_JOINABLE,
1237
+
1238
+ PTHREAD_CREATE_DETACHED
1239
+
1240
+ };
1241
+
1242
+
1243
+
1244
+ enum
1245
+ {
1246
+ PTHREAD_MUTEX_TIMED_NP,
1247
+ PTHREAD_MUTEX_RECURSIVE_NP,
1248
+ PTHREAD_MUTEX_ERRORCHECK_NP,
1249
+ PTHREAD_MUTEX_ADAPTIVE_NP
1250
+
1251
+ ,
1252
+ PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
1253
+ PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
1254
+ PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
1255
+ PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+ };
1262
+
1263
+
1264
+
1265
+
1266
+ enum
1267
+ {
1268
+ PTHREAD_MUTEX_STALLED,
1269
+ PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
1270
+ PTHREAD_MUTEX_ROBUST,
1271
+ PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
1272
+ };
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ enum
1279
+ {
1280
+ PTHREAD_PRIO_NONE,
1281
+ PTHREAD_PRIO_INHERIT,
1282
+ PTHREAD_PRIO_PROTECT
1283
+ };
1284
+ /* 115 "/usr/include/pthread.h" 3 4 */
1285
+ enum
1286
+ {
1287
+ PTHREAD_RWLOCK_PREFER_READER_NP,
1288
+ PTHREAD_RWLOCK_PREFER_WRITER_NP,
1289
+ PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
1290
+ PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
1291
+ };
1292
+ /* 156 "/usr/include/pthread.h" 3 4 */
1293
+ enum
1294
+ {
1295
+ PTHREAD_INHERIT_SCHED,
1296
+
1297
+ PTHREAD_EXPLICIT_SCHED
1298
+
1299
+ };
1300
+
1301
+
1302
+
1303
+ enum
1304
+ {
1305
+ PTHREAD_SCOPE_SYSTEM,
1306
+
1307
+ PTHREAD_SCOPE_PROCESS
1308
+
1309
+ };
1310
+
1311
+
1312
+
1313
+ enum
1314
+ {
1315
+ PTHREAD_PROCESS_PRIVATE,
1316
+
1317
+ PTHREAD_PROCESS_SHARED
1318
+
1319
+ };
1320
+ /* 191 "/usr/include/pthread.h" 3 4 */
1321
+ struct _pthread_cleanup_buffer
1322
+ {
1323
+ void (*__routine) (void *);
1324
+ void *__arg;
1325
+ int __canceltype;
1326
+ struct _pthread_cleanup_buffer *__prev;
1327
+ };
1328
+
1329
+
1330
+ enum
1331
+ {
1332
+ PTHREAD_CANCEL_ENABLE,
1333
+
1334
+ PTHREAD_CANCEL_DISABLE
1335
+
1336
+ };
1337
+ enum
1338
+ {
1339
+ PTHREAD_CANCEL_DEFERRED,
1340
+
1341
+ PTHREAD_CANCEL_ASYNCHRONOUS
1342
+
1343
+ };
1344
+ /* 229 "/usr/include/pthread.h" 3 4 */
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+ extern int pthread_create (pthread_t *__restrict __newthread,
1351
+ const pthread_attr_t *__restrict __attr,
1352
+ void *(*__start_routine) (void *),
1353
+ void *__restrict __arg) ;
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ extern void pthread_exit (void *__retval) ;
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ extern int pthread_join (pthread_t __th, void **__thread_return);
1368
+ /* 272 "/usr/include/pthread.h" 3 4 */
1369
+ extern int pthread_detach (pthread_t __th) ;
1370
+
1371
+
1372
+
1373
+ extern pthread_t pthread_self (void) ;
1374
+
1375
+
1376
+ extern int pthread_equal (pthread_t __thread1, pthread_t __thread2)
1377
+ ;
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+ extern int pthread_attr_init (pthread_attr_t *__attr) ;
1386
+
1387
+
1388
+ extern int pthread_attr_destroy (pthread_attr_t *__attr)
1389
+ ;
1390
+
1391
+
1392
+ extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr,
1393
+ int *__detachstate)
1394
+ ;
1395
+
1396
+
1397
+ extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
1398
+ int __detachstate)
1399
+ ;
1400
+
1401
+
1402
+
1403
+ extern int pthread_attr_getguardsize (const pthread_attr_t *__attr,
1404
+ size_t *__guardsize)
1405
+ ;
1406
+
1407
+
1408
+ extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
1409
+ size_t __guardsize)
1410
+ ;
1411
+
1412
+
1413
+
1414
+ extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr,
1415
+ struct sched_param *__restrict __param)
1416
+ ;
1417
+
1418
+
1419
+ extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
1420
+ const struct sched_param *__restrict
1421
+ __param) ;
1422
+
1423
+
1424
+ extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict
1425
+ __attr, int *__restrict __policy)
1426
+ ;
1427
+
1428
+
1429
+ extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
1430
+ ;
1431
+
1432
+
1433
+ extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict
1434
+ __attr, int *__restrict __inherit)
1435
+ ;
1436
+
1437
+
1438
+ extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
1439
+ int __inherit)
1440
+ ;
1441
+
1442
+
1443
+
1444
+ extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr,
1445
+ int *__restrict __scope)
1446
+ ;
1447
+
1448
+
1449
+ extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
1450
+ ;
1451
+
1452
+
1453
+ extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict
1454
+ __attr, void **__restrict __stackaddr)
1455
+ ;
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
1462
+ void *__stackaddr)
1463
+ ;
1464
+
1465
+
1466
+ extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict
1467
+ __attr, size_t *__restrict __stacksize)
1468
+ ;
1469
+
1470
+
1471
+
1472
+
1473
+ extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
1474
+ size_t __stacksize)
1475
+ ;
1476
+
1477
+
1478
+
1479
+ extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr,
1480
+ void **__restrict __stackaddr,
1481
+ size_t *__restrict __stacksize)
1482
+ ;
1483
+
1484
+
1485
+
1486
+
1487
+ extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
1488
+ size_t __stacksize) ;
1489
+ /* 430 "/usr/include/pthread.h" 3 4 */
1490
+ extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
1491
+ const struct sched_param *__param)
1492
+ ;
1493
+
1494
+
1495
+ extern int pthread_getschedparam (pthread_t __target_thread,
1496
+ int *__restrict __policy,
1497
+ struct sched_param *__restrict __param)
1498
+ ;
1499
+
1500
+
1501
+ extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
1502
+ ;
1503
+ /* 495 "/usr/include/pthread.h" 3 4 */
1504
+ extern int pthread_once (pthread_once_t *__once_control,
1505
+ void (*__init_routine) (void)) ;
1506
+ /* 507 "/usr/include/pthread.h" 3 4 */
1507
+ extern int pthread_setcancelstate (int __state, int *__oldstate);
1508
+
1509
+
1510
+
1511
+ extern int pthread_setcanceltype (int __type, int *__oldtype);
1512
+
1513
+
1514
+ extern int pthread_cancel (pthread_t __th);
1515
+
1516
+
1517
+
1518
+
1519
+ extern void pthread_testcancel (void);
1520
+
1521
+
1522
+
1523
+
1524
+ typedef struct
1525
+ {
1526
+ struct
1527
+ {
1528
+ __jmp_buf __cancel_jmp_buf;
1529
+ int __mask_was_saved;
1530
+ } __cancel_jmp_buf[1];
1531
+ void *__pad[4];
1532
+ } __pthread_unwind_buf_t ;
1533
+ /* 541 "/usr/include/pthread.h" 3 4 */
1534
+ struct __pthread_cleanup_frame
1535
+ {
1536
+ void (*__cancel_routine) (void *);
1537
+ void *__cancel_arg;
1538
+ int __do_it;
1539
+ int __cancel_type;
1540
+ };
1541
+ /* 681 "/usr/include/pthread.h" 3 4 */
1542
+ extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
1543
+ ;
1544
+ /* 693 "/usr/include/pthread.h" 3 4 */
1545
+ extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
1546
+ ;
1547
+ /* 734 "/usr/include/pthread.h" 3 4 */
1548
+ extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
1549
+
1550
+
1551
+
1552
+
1553
+ ;
1554
+
1555
+
1556
+
1557
+ struct __jmp_buf_tag;
1558
+ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) ;
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+ extern int pthread_mutex_init (pthread_mutex_t *__mutex,
1565
+ const pthread_mutexattr_t *__mutexattr)
1566
+ ;
1567
+
1568
+
1569
+ extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
1570
+ ;
1571
+
1572
+
1573
+ extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
1574
+ ;
1575
+
1576
+
1577
+ extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
1578
+ ;
1579
+
1580
+
1581
+
1582
+ extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
1583
+ const struct timespec *__restrict
1584
+ __abstime) ;
1585
+
1586
+
1587
+
1588
+ extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
1589
+ ;
1590
+
1591
+
1592
+
1593
+ extern int pthread_mutex_getprioceiling (const pthread_mutex_t *
1594
+ __restrict __mutex,
1595
+ int *__restrict __prioceiling)
1596
+ ;
1597
+
1598
+
1599
+
1600
+ extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
1601
+ int __prioceiling,
1602
+ int *__restrict __old_ceiling)
1603
+ ;
1604
+
1605
+
1606
+
1607
+
1608
+ extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
1609
+ ;
1610
+ /* 807 "/usr/include/pthread.h" 3 4 */
1611
+ extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
1612
+ ;
1613
+
1614
+
1615
+ extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
1616
+ ;
1617
+
1618
+
1619
+ extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t *
1620
+ __restrict __attr,
1621
+ int *__restrict __pshared)
1622
+ ;
1623
+
1624
+
1625
+ extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
1626
+ int __pshared)
1627
+ ;
1628
+
1629
+
1630
+
1631
+ extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict
1632
+ __attr, int *__restrict __kind)
1633
+ ;
1634
+
1635
+
1636
+
1637
+
1638
+ extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
1639
+ ;
1640
+
1641
+
1642
+
1643
+ extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t *
1644
+ __restrict __attr,
1645
+ int *__restrict __protocol)
1646
+ ;
1647
+
1648
+
1649
+
1650
+ extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
1651
+ int __protocol)
1652
+ ;
1653
+
1654
+
1655
+ extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t *
1656
+ __restrict __attr,
1657
+ int *__restrict __prioceiling)
1658
+ ;
1659
+
1660
+
1661
+ extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
1662
+ int __prioceiling)
1663
+ ;
1664
+
1665
+
1666
+
1667
+ extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr,
1668
+ int *__robustness)
1669
+ ;
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+ extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
1678
+ int __robustness)
1679
+ ;
1680
+ /* 889 "/usr/include/pthread.h" 3 4 */
1681
+ extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
1682
+ const pthread_rwlockattr_t *__restrict
1683
+ __attr) ;
1684
+
1685
+
1686
+ extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
1687
+ ;
1688
+
1689
+
1690
+ extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
1691
+ ;
1692
+
1693
+
1694
+ extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
1695
+ ;
1696
+
1697
+
1698
+
1699
+ extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
1700
+ const struct timespec *__restrict
1701
+ __abstime) ;
1702
+
1703
+
1704
+
1705
+ extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
1706
+ ;
1707
+
1708
+
1709
+ extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
1710
+ ;
1711
+
1712
+
1713
+
1714
+ extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
1715
+ const struct timespec *__restrict
1716
+ __abstime) ;
1717
+
1718
+
1719
+
1720
+ extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
1721
+ ;
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+ extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
1728
+ ;
1729
+
1730
+
1731
+ extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
1732
+ ;
1733
+
1734
+
1735
+ extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *
1736
+ __restrict __attr,
1737
+ int *__restrict __pshared)
1738
+ ;
1739
+
1740
+
1741
+ extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
1742
+ int __pshared)
1743
+ ;
1744
+
1745
+
1746
+ extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *
1747
+ __restrict __attr,
1748
+ int *__restrict __pref)
1749
+ ;
1750
+
1751
+
1752
+ extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
1753
+ int __pref) ;
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+ extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
1762
+ const pthread_condattr_t *__restrict __cond_attr)
1763
+ ;
1764
+
1765
+
1766
+ extern int pthread_cond_destroy (pthread_cond_t *__cond)
1767
+ ;
1768
+
1769
+
1770
+ extern int pthread_cond_signal (pthread_cond_t *__cond)
1771
+ ;
1772
+
1773
+
1774
+ extern int pthread_cond_broadcast (pthread_cond_t *__cond)
1775
+ ;
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+ extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
1783
+ pthread_mutex_t *__restrict __mutex)
1784
+ ;
1785
+ /* 1001 "/usr/include/pthread.h" 3 4 */
1786
+ extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
1787
+ pthread_mutex_t *__restrict __mutex,
1788
+ const struct timespec *__restrict __abstime)
1789
+ ;
1790
+
1791
+
1792
+
1793
+
1794
+ extern int pthread_condattr_init (pthread_condattr_t *__attr)
1795
+ ;
1796
+
1797
+
1798
+ extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
1799
+ ;
1800
+
1801
+
1802
+ extern int pthread_condattr_getpshared (const pthread_condattr_t *
1803
+ __restrict __attr,
1804
+ int *__restrict __pshared)
1805
+ ;
1806
+
1807
+
1808
+ extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
1809
+ int __pshared) ;
1810
+
1811
+
1812
+
1813
+ extern int pthread_condattr_getclock (const pthread_condattr_t *
1814
+ __restrict __attr,
1815
+ __clockid_t *__restrict __clock_id)
1816
+ ;
1817
+
1818
+
1819
+ extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
1820
+ __clockid_t __clock_id)
1821
+ ;
1822
+ /* 1045 "/usr/include/pthread.h" 3 4 */
1823
+ extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
1824
+ ;
1825
+
1826
+
1827
+ extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
1828
+ ;
1829
+
1830
+
1831
+ extern int pthread_spin_lock (pthread_spinlock_t *__lock)
1832
+ ;
1833
+
1834
+
1835
+ extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
1836
+ ;
1837
+
1838
+
1839
+ extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
1840
+ ;
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+ extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
1848
+ const pthread_barrierattr_t *__restrict
1849
+ __attr, unsigned int __count)
1850
+ ;
1851
+
1852
+
1853
+ extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
1854
+ ;
1855
+
1856
+
1857
+ extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
1858
+ ;
1859
+
1860
+
1861
+
1862
+ extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
1863
+ ;
1864
+
1865
+
1866
+ extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
1867
+ ;
1868
+
1869
+
1870
+ extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t *
1871
+ __restrict __attr,
1872
+ int *__restrict __pshared)
1873
+ ;
1874
+
1875
+
1876
+ extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
1877
+ int __pshared)
1878
+ ;
1879
+ /* 1112 "/usr/include/pthread.h" 3 4 */
1880
+ extern int pthread_key_create (pthread_key_t *__key,
1881
+ void (*__destr_function) (void *))
1882
+ ;
1883
+
1884
+
1885
+ extern int pthread_key_delete (pthread_key_t __key) ;
1886
+
1887
+
1888
+ extern void *pthread_getspecific (pthread_key_t __key) ;
1889
+
1890
+
1891
+ extern int pthread_setspecific (pthread_key_t __key,
1892
+ const void *__pointer) ;
1893
+
1894
+
1895
+
1896
+
1897
+ extern int pthread_getcpuclockid (pthread_t __thread_id,
1898
+ __clockid_t *__clock_id)
1899
+ ;
1900
+ /* 1146 "/usr/include/pthread.h" 3 4 */
1901
+ extern int pthread_atfork (void (*__prepare) (void),
1902
+ void (*__parent) (void),
1903
+ void (*__child) (void)) ;
1904
+ /* 1160 "/usr/include/pthread.h" 3 4 */
1905
+
1906
+ /* 23 "../../../test/cygwin/tecs_pthread_adaptor.h" 2 */
1907
+ /* 16 "../../../test/cygwin/cygwin_tecs.h" 2 */
1908
+ /* 36 "gen/tmp_C_src.c" 2 */