Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge s4u wait_any
[simgrid.git] / src / simix / popping_generated.cpp
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /**********************************************************************/
8
9 /*
10  * Note that the name comes from http://en.wikipedia.org/wiki/Popping
11  * Indeed, the control flow is doing a strange dance in there.
12  *
13  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
14  */
15
16 #include <xbt/base.h>
17 #include "smx_private.h"
18 #if HAVE_MC
19 #include "src/mc/mc_forward.hpp"
20 #endif
21
22 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping);
23
24 /** @brief Simcalls' names (generated from src/simix/simcalls.in) */
25 const char* simcall_names[] = {
26    "SIMCALL_NONE",  "SIMCALL_VM_SUSPEND",
27   "SIMCALL_VM_RESUME",
28   "SIMCALL_VM_SHUTDOWN",
29   "SIMCALL_VM_SAVE",
30   "SIMCALL_VM_RESTORE",
31   "SIMCALL_PROCESS_KILL",
32   "SIMCALL_PROCESS_KILLALL",
33   "SIMCALL_PROCESS_CLEANUP",
34   "SIMCALL_PROCESS_SUSPEND",
35   "SIMCALL_PROCESS_RESUME",
36   "SIMCALL_PROCESS_SET_HOST",
37   "SIMCALL_PROCESS_IS_SUSPENDED",
38   "SIMCALL_PROCESS_JOIN",
39   "SIMCALL_PROCESS_SLEEP",
40   "SIMCALL_EXECUTION_START",
41   "SIMCALL_EXECUTION_PARALLEL_START",
42   "SIMCALL_EXECUTION_CANCEL",
43   "SIMCALL_EXECUTION_SET_PRIORITY",
44   "SIMCALL_EXECUTION_SET_BOUND",
45   "SIMCALL_EXECUTION_SET_AFFINITY",
46   "SIMCALL_EXECUTION_WAIT",
47   "SIMCALL_PROCESS_ON_EXIT",
48   "SIMCALL_PROCESS_AUTO_RESTART_SET",
49   "SIMCALL_PROCESS_RESTART",
50   "SIMCALL_MBOX_CREATE",
51   "SIMCALL_MBOX_SET_RECEIVER",
52   "SIMCALL_COMM_IPROBE",
53   "SIMCALL_COMM_SEND",
54   "SIMCALL_COMM_ISEND",
55   "SIMCALL_COMM_RECV",
56   "SIMCALL_COMM_IRECV",
57   "SIMCALL_COMM_WAITANY",
58   "SIMCALL_COMM_WAIT",
59   "SIMCALL_COMM_TEST",
60   "SIMCALL_COMM_TESTANY",
61   "SIMCALL_MUTEX_INIT",
62   "SIMCALL_MUTEX_LOCK",
63   "SIMCALL_MUTEX_TRYLOCK",
64   "SIMCALL_MUTEX_UNLOCK",
65   "SIMCALL_COND_INIT",
66   "SIMCALL_COND_SIGNAL",
67   "SIMCALL_COND_WAIT",
68   "SIMCALL_COND_WAIT_TIMEOUT",
69   "SIMCALL_COND_BROADCAST",
70   "SIMCALL_SEM_INIT",
71   "SIMCALL_SEM_RELEASE",
72   "SIMCALL_SEM_WOULD_BLOCK",
73   "SIMCALL_SEM_ACQUIRE",
74   "SIMCALL_SEM_ACQUIRE_TIMEOUT",
75   "SIMCALL_SEM_GET_CAPACITY",
76   "SIMCALL_FILE_READ",
77   "SIMCALL_FILE_WRITE",
78   "SIMCALL_FILE_OPEN",
79   "SIMCALL_FILE_CLOSE",
80   "SIMCALL_FILE_UNLINK",
81   "SIMCALL_FILE_GET_SIZE",
82   "SIMCALL_FILE_TELL",
83   "SIMCALL_FILE_SEEK",
84   "SIMCALL_FILE_GET_INFO",
85   "SIMCALL_FILE_MOVE",
86   "SIMCALL_STORAGE_GET_FREE_SIZE",
87   "SIMCALL_STORAGE_GET_USED_SIZE",
88   "SIMCALL_STORAGE_GET_PROPERTIES",
89   "SIMCALL_STORAGE_GET_CONTENT",
90   "SIMCALL_ASR_GET_PROPERTIES",
91   "SIMCALL_MC_RANDOM",
92   "SIMCALL_SET_CATEGORY",
93   "SIMCALL_RUN_KERNEL",
94   "SIMCALL_RUN_BLOCKING",};
95
96 /** @private
97  * @brief (in kernel mode) unpack the simcall and activate the handler
98  * 
99  * This function is generated from src/simix/simcalls.in
100  */
101 void SIMIX_simcall_handle(smx_simcall_t simcall, int value) {
102   XBT_DEBUG("Handling simcall %p: %s", simcall, SIMIX_simcall_name(simcall->call));
103   SIMCALL_SET_MC_VALUE(simcall, value);
104   if (simcall->issuer->context->iwannadie && simcall->call != SIMCALL_PROCESS_CLEANUP)
105     return;
106   switch (simcall->call) {
107 case SIMCALL_VM_SUSPEND:
108       simcall_HANDLER_vm_suspend(simcall, simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]));
109       SIMIX_simcall_answer(simcall);
110       break;
111
112 case SIMCALL_VM_RESUME:
113       simcall_HANDLER_vm_resume(simcall, simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]));
114       SIMIX_simcall_answer(simcall);
115       break;
116
117 case SIMCALL_VM_SHUTDOWN:
118       simcall_HANDLER_vm_shutdown(simcall, simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]));
119       SIMIX_simcall_answer(simcall);
120       break;
121
122 case SIMCALL_VM_SAVE:
123       simcall_HANDLER_vm_save(simcall, simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]));
124       SIMIX_simcall_answer(simcall);
125       break;
126
127 case SIMCALL_VM_RESTORE:
128       simcall_HANDLER_vm_restore(simcall, simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]));
129       SIMIX_simcall_answer(simcall);
130       break;
131
132 case SIMCALL_PROCESS_KILL:
133       simcall_HANDLER_process_kill(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]));
134       SIMIX_simcall_answer(simcall);
135       break;
136
137 case SIMCALL_PROCESS_KILLALL:
138       simcall_HANDLER_process_killall(simcall, simgrid::simix::unmarshal<int>(simcall->args[0]));
139       SIMIX_simcall_answer(simcall);
140       break;
141
142 case SIMCALL_PROCESS_CLEANUP:
143       SIMIX_process_cleanup(simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]));
144       SIMIX_simcall_answer(simcall);
145       break;
146
147 case SIMCALL_PROCESS_SUSPEND:
148       simcall_HANDLER_process_suspend(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]));
149       break;
150
151 case SIMCALL_PROCESS_RESUME:
152       simcall_HANDLER_process_resume(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]));
153       SIMIX_simcall_answer(simcall);
154       break;
155
156 case SIMCALL_PROCESS_SET_HOST:
157       simcall_HANDLER_process_set_host(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
158       SIMIX_simcall_answer(simcall);
159       break;
160
161 case SIMCALL_PROCESS_IS_SUSPENDED:
162       simgrid::simix::marshal<int>(simcall->result, SIMIX_process_is_suspended(simgrid::simix::unmarshal<smx_process_t>(simcall->args[0])));
163       SIMIX_simcall_answer(simcall);
164       break;
165
166 case SIMCALL_PROCESS_JOIN:
167       simcall_HANDLER_process_join(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
168       break;
169
170 case SIMCALL_PROCESS_SLEEP:
171       simcall_HANDLER_process_sleep(simcall, simgrid::simix::unmarshal<double>(simcall->args[0]));
172       break;
173
174 case SIMCALL_EXECUTION_START:
175       simgrid::simix::marshal<smx_synchro_t>(simcall->result, simcall_HANDLER_execution_start(simcall, simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3]), simgrid::simix::unmarshal<unsigned long>(simcall->args[4])));
176       SIMIX_simcall_answer(simcall);
177       break;
178
179 case SIMCALL_EXECUTION_PARALLEL_START:
180       simgrid::simix::marshal<smx_synchro_t>(simcall->result, SIMIX_execution_parallel_start(simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]), simgrid::simix::unmarshal<double*>(simcall->args[3]), simgrid::simix::unmarshal<double*>(simcall->args[4]), simgrid::simix::unmarshal<double>(simcall->args[5]), simgrid::simix::unmarshal<double>(simcall->args[6])));
181       SIMIX_simcall_answer(simcall);
182       break;
183
184 case SIMCALL_EXECUTION_CANCEL:
185       SIMIX_execution_cancel(simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]));
186       SIMIX_simcall_answer(simcall);
187       break;
188
189 case SIMCALL_EXECUTION_SET_PRIORITY:
190       SIMIX_execution_set_priority(simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
191       SIMIX_simcall_answer(simcall);
192       break;
193
194 case SIMCALL_EXECUTION_SET_BOUND:
195       SIMIX_execution_set_bound(simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
196       SIMIX_simcall_answer(simcall);
197       break;
198
199 case SIMCALL_EXECUTION_SET_AFFINITY:
200       SIMIX_execution_set_affinity(simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]), simgrid::simix::unmarshal<unsigned long>(simcall->args[2]));
201       SIMIX_simcall_answer(simcall);
202       break;
203
204 case SIMCALL_EXECUTION_WAIT:
205       simcall_HANDLER_execution_wait(simcall, simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]));
206       break;
207
208 case SIMCALL_PROCESS_ON_EXIT:
209       SIMIX_process_on_exit(simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]));
210       SIMIX_simcall_answer(simcall);
211       break;
212
213 case SIMCALL_PROCESS_AUTO_RESTART_SET:
214       SIMIX_process_auto_restart_set(simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]));
215       SIMIX_simcall_answer(simcall);
216       break;
217
218 case SIMCALL_PROCESS_RESTART:
219       simgrid::simix::marshal<smx_process_t>(simcall->result, simcall_HANDLER_process_restart(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0])));
220       SIMIX_simcall_answer(simcall);
221       break;
222
223 case SIMCALL_MBOX_CREATE:
224       simgrid::simix::marshal<smx_mailbox_t>(simcall->result, SIMIX_mbox_create(simgrid::simix::unmarshal<const char*>(simcall->args[0])));
225       SIMIX_simcall_answer(simcall);
226       break;
227
228 case SIMCALL_MBOX_SET_RECEIVER:
229       SIMIX_mbox_set_receiver(simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_process_t>(simcall->args[1]));
230       SIMIX_simcall_answer(simcall);
231       break;
232
233 case SIMCALL_COMM_IPROBE:
234       simgrid::simix::marshal<smx_synchro_t>(simcall->result, simcall_HANDLER_comm_iprobe(simcall, simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]), simgrid::simix::unmarshal<int>(simcall->args[2]), simgrid::simix::unmarshal<int>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<void*>(simcall->args[5])));
235       SIMIX_simcall_answer(simcall);
236       break;
237
238 case SIMCALL_COMM_SEND:
239       simcall_HANDLER_comm_send(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3]), simgrid::simix::unmarshal<void*>(simcall->args[4]), simgrid::simix::unmarshal<size_t>(simcall->args[5]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]), simgrid::simix::unmarshal<void*>(simcall->args[8]), simgrid::simix::unmarshal<double>(simcall->args[9]));
240       break;
241
242 case SIMCALL_COMM_ISEND:
243       simgrid::simix::marshal<smx_synchro_t>(simcall->result, simcall_HANDLER_comm_isend(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3]), simgrid::simix::unmarshal<void*>(simcall->args[4]), simgrid::simix::unmarshal<size_t>(simcall->args[5]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]), simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]), simgrid::simix::unmarshal<void*>(simcall->args[9]), simgrid::simix::unmarshal<int>(simcall->args[10])));
244       SIMIX_simcall_answer(simcall);
245       break;
246
247 case SIMCALL_COMM_RECV:
248       simcall_HANDLER_comm_recv(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]), simgrid::simix::unmarshal<size_t*>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]), simgrid::simix::unmarshal<void*>(simcall->args[6]), simgrid::simix::unmarshal<double>(simcall->args[7]), simgrid::simix::unmarshal<double>(simcall->args[8]));
249       break;
250
251 case SIMCALL_COMM_IRECV:
252       simgrid::simix::marshal<smx_synchro_t>(simcall->result, simcall_HANDLER_comm_irecv(simcall, simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]), simgrid::simix::unmarshal<size_t*>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]), simgrid::simix::unmarshal<void*>(simcall->args[6]), simgrid::simix::unmarshal<double>(simcall->args[7])));
253       SIMIX_simcall_answer(simcall);
254       break;
255
256 case SIMCALL_COMM_WAITANY:
257       simcall_HANDLER_comm_waitany(simcall, simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
258       break;
259
260 case SIMCALL_COMM_WAIT:
261       simcall_HANDLER_comm_wait(simcall, simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
262       break;
263
264 case SIMCALL_COMM_TEST:
265       simcall_HANDLER_comm_test(simcall, simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]));
266       break;
267
268 case SIMCALL_COMM_TESTANY:
269       simcall_HANDLER_comm_testany(simcall, simgrid::simix::unmarshal<smx_synchro_t*>(simcall->args[0]), simgrid::simix::unmarshal<size_t>(simcall->args[1]));
270       break;
271
272 case SIMCALL_MUTEX_INIT:
273       simgrid::simix::marshal<smx_mutex_t>(simcall->result, simcall_HANDLER_mutex_init(simcall));
274       SIMIX_simcall_answer(simcall);
275       break;
276
277 case SIMCALL_MUTEX_LOCK:
278       simcall_HANDLER_mutex_lock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]));
279       break;
280
281 case SIMCALL_MUTEX_TRYLOCK:
282       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_mutex_trylock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0])));
283       SIMIX_simcall_answer(simcall);
284       break;
285
286 case SIMCALL_MUTEX_UNLOCK:
287       simcall_HANDLER_mutex_unlock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]));
288       SIMIX_simcall_answer(simcall);
289       break;
290
291 case SIMCALL_COND_INIT:
292       simgrid::simix::marshal<smx_cond_t>(simcall->result, SIMIX_cond_init());
293       SIMIX_simcall_answer(simcall);
294       break;
295
296 case SIMCALL_COND_SIGNAL:
297       SIMIX_cond_signal(simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]));
298       SIMIX_simcall_answer(simcall);
299       break;
300
301 case SIMCALL_COND_WAIT:
302       simcall_HANDLER_cond_wait(simcall, simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]));
303       break;
304
305 case SIMCALL_COND_WAIT_TIMEOUT:
306       simcall_HANDLER_cond_wait_timeout(simcall, simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]));
307       break;
308
309 case SIMCALL_COND_BROADCAST:
310       SIMIX_cond_broadcast(simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]));
311       SIMIX_simcall_answer(simcall);
312       break;
313
314 case SIMCALL_SEM_INIT:
315       simgrid::simix::marshal<smx_sem_t>(simcall->result, SIMIX_sem_init(simgrid::simix::unmarshal<unsigned int>(simcall->args[0])));
316       SIMIX_simcall_answer(simcall);
317       break;
318
319 case SIMCALL_SEM_RELEASE:
320       simcall_HANDLER_sem_release(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]));
321       SIMIX_simcall_answer(simcall);
322       break;
323
324 case SIMCALL_SEM_WOULD_BLOCK:
325       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_sem_would_block(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0])));
326       SIMIX_simcall_answer(simcall);
327       break;
328
329 case SIMCALL_SEM_ACQUIRE:
330       simcall_HANDLER_sem_acquire(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]));
331       break;
332
333 case SIMCALL_SEM_ACQUIRE_TIMEOUT:
334       simcall_HANDLER_sem_acquire_timeout(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
335       break;
336
337 case SIMCALL_SEM_GET_CAPACITY:
338       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_sem_get_capacity(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0])));
339       SIMIX_simcall_answer(simcall);
340       break;
341
342 case SIMCALL_FILE_READ:
343       simcall_HANDLER_file_read(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]));
344       break;
345
346 case SIMCALL_FILE_WRITE:
347       simcall_HANDLER_file_write(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]));
348       break;
349
350 case SIMCALL_FILE_OPEN:
351       simcall_HANDLER_file_open(simcall, simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
352       break;
353
354 case SIMCALL_FILE_CLOSE:
355       simcall_HANDLER_file_close(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
356       break;
357
358 case SIMCALL_FILE_UNLINK:
359       simgrid::simix::marshal<int>(simcall->result, SIMIX_file_unlink(simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1])));
360       SIMIX_simcall_answer(simcall);
361       break;
362
363 case SIMCALL_FILE_GET_SIZE:
364       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_file_get_size(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
365       SIMIX_simcall_answer(simcall);
366       break;
367
368 case SIMCALL_FILE_TELL:
369       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_file_tell(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
370       SIMIX_simcall_answer(simcall);
371       break;
372
373 case SIMCALL_FILE_SEEK:
374       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_file_seek(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]), simgrid::simix::unmarshal<int>(simcall->args[2])));
375       SIMIX_simcall_answer(simcall);
376       break;
377
378 case SIMCALL_FILE_GET_INFO:
379       simgrid::simix::marshal<xbt_dynar_t>(simcall->result, simcall_HANDLER_file_get_info(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
380       SIMIX_simcall_answer(simcall);
381       break;
382
383 case SIMCALL_FILE_MOVE:
384       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_file_move(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<const char*>(simcall->args[1])));
385       SIMIX_simcall_answer(simcall);
386       break;
387
388 case SIMCALL_STORAGE_GET_FREE_SIZE:
389       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_storage_get_free_size(simcall, simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
390       SIMIX_simcall_answer(simcall);
391       break;
392
393 case SIMCALL_STORAGE_GET_USED_SIZE:
394       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_storage_get_used_size(simcall, simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
395       SIMIX_simcall_answer(simcall);
396       break;
397
398 case SIMCALL_STORAGE_GET_PROPERTIES:
399       simgrid::simix::marshal<xbt_dict_t>(simcall->result, SIMIX_storage_get_properties(simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
400       SIMIX_simcall_answer(simcall);
401       break;
402
403 case SIMCALL_STORAGE_GET_CONTENT:
404       simgrid::simix::marshal<xbt_dict_t>(simcall->result, SIMIX_storage_get_content(simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
405       SIMIX_simcall_answer(simcall);
406       break;
407
408 case SIMCALL_ASR_GET_PROPERTIES:
409       simgrid::simix::marshal<xbt_dict_t>(simcall->result, simcall_HANDLER_asr_get_properties(simcall, simgrid::simix::unmarshal<const char*>(simcall->args[0])));
410       SIMIX_simcall_answer(simcall);
411       break;
412
413 case SIMCALL_MC_RANDOM:
414       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_mc_random(simcall, simgrid::simix::unmarshal<int>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1])));
415       SIMIX_simcall_answer(simcall);
416       break;
417
418 case SIMCALL_SET_CATEGORY:
419       SIMIX_set_category(simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]), simgrid::simix::unmarshal<const char*>(simcall->args[1]));
420       SIMIX_simcall_answer(simcall);
421       break;
422
423 case SIMCALL_RUN_KERNEL:
424       SIMIX_run_kernel(simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]));
425       SIMIX_simcall_answer(simcall);
426       break;
427
428 case SIMCALL_RUN_BLOCKING:
429       SIMIX_run_blocking(simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]));
430       break;
431     case NUM_SIMCALLS:
432       break;
433     case SIMCALL_NONE:
434       THROWF(arg_error,0,"Asked to do the noop syscall on %s@%s",
435           SIMIX_process_get_name(simcall->issuer),
436           sg_host_get_name(SIMIX_process_get_host(simcall->issuer))
437           );
438       break;
439
440   }
441 }