Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0e5b55a328c7b57a61e35a230d794e18a2c8bd57
[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_CREATE",
32   "SIMCALL_PROCESS_KILL",
33   "SIMCALL_PROCESS_KILLALL",
34   "SIMCALL_PROCESS_CLEANUP",
35   "SIMCALL_PROCESS_SUSPEND",
36   "SIMCALL_PROCESS_RESUME",
37   "SIMCALL_PROCESS_SET_HOST",
38   "SIMCALL_PROCESS_IS_SUSPENDED",
39   "SIMCALL_PROCESS_JOIN",
40   "SIMCALL_PROCESS_SLEEP",
41   "SIMCALL_EXECUTION_START",
42   "SIMCALL_EXECUTION_PARALLEL_START",
43   "SIMCALL_EXECUTION_DESTROY",
44   "SIMCALL_EXECUTION_CANCEL",
45   "SIMCALL_EXECUTION_GET_REMAINS",
46   "SIMCALL_EXECUTION_GET_STATE",
47   "SIMCALL_EXECUTION_SET_PRIORITY",
48   "SIMCALL_EXECUTION_SET_BOUND",
49   "SIMCALL_EXECUTION_SET_AFFINITY",
50   "SIMCALL_EXECUTION_WAIT",
51   "SIMCALL_PROCESS_ON_EXIT",
52   "SIMCALL_PROCESS_AUTO_RESTART_SET",
53   "SIMCALL_PROCESS_RESTART",
54   "SIMCALL_MBOX_CREATE",
55   "SIMCALL_MBOX_DESTROY",
56   "SIMCALL_MBOX_COMM_COUNT_BY_HOST",
57   "SIMCALL_MBOX_GET_HEAD",
58   "SIMCALL_MBOX_SET_RECEIVER",
59   "SIMCALL_MBOX_GET_RECEIVER",
60   "SIMCALL_COMM_IPROBE",
61   "SIMCALL_COMM_SEND",
62   "SIMCALL_COMM_ISEND",
63   "SIMCALL_COMM_RECV",
64   "SIMCALL_COMM_IRECV",
65   "SIMCALL_COMM_CANCEL",
66   "SIMCALL_COMM_WAITANY",
67   "SIMCALL_COMM_WAIT",
68   "SIMCALL_COMM_TEST",
69   "SIMCALL_COMM_TESTANY",
70   "SIMCALL_COMM_GET_REMAINS",
71   "SIMCALL_COMM_GET_STATE",
72   "SIMCALL_COMM_GET_SRC_DATA",
73   "SIMCALL_COMM_GET_DST_DATA",
74   "SIMCALL_COMM_GET_SRC_PROC",
75   "SIMCALL_COMM_GET_DST_PROC",
76   "SIMCALL_MUTEX_INIT",
77   "SIMCALL_MUTEX_LOCK",
78   "SIMCALL_MUTEX_TRYLOCK",
79   "SIMCALL_MUTEX_UNLOCK",
80   "SIMCALL_COND_INIT",
81   "SIMCALL_COND_SIGNAL",
82   "SIMCALL_COND_WAIT",
83   "SIMCALL_COND_WAIT_TIMEOUT",
84   "SIMCALL_COND_BROADCAST",
85   "SIMCALL_SEM_INIT",
86   "SIMCALL_SEM_RELEASE",
87   "SIMCALL_SEM_WOULD_BLOCK",
88   "SIMCALL_SEM_ACQUIRE",
89   "SIMCALL_SEM_ACQUIRE_TIMEOUT",
90   "SIMCALL_SEM_GET_CAPACITY",
91   "SIMCALL_FILE_READ",
92   "SIMCALL_FILE_WRITE",
93   "SIMCALL_FILE_OPEN",
94   "SIMCALL_FILE_CLOSE",
95   "SIMCALL_FILE_UNLINK",
96   "SIMCALL_FILE_GET_SIZE",
97   "SIMCALL_FILE_TELL",
98   "SIMCALL_FILE_SEEK",
99   "SIMCALL_FILE_GET_INFO",
100   "SIMCALL_FILE_MOVE",
101   "SIMCALL_STORAGE_GET_FREE_SIZE",
102   "SIMCALL_STORAGE_GET_USED_SIZE",
103   "SIMCALL_STORAGE_GET_PROPERTIES",
104   "SIMCALL_STORAGE_GET_CONTENT",
105   "SIMCALL_ASR_GET_PROPERTIES",
106   "SIMCALL_MC_RANDOM",
107   "SIMCALL_SET_CATEGORY",
108   "SIMCALL_RUN_KERNEL",};
109
110 /**
111  * @brief (in kernel mode) unpack the simcall and activate the handler
112  * 
113  * This function is generated from src/simix/simcalls.in
114  */
115 void SIMIX_simcall_handle(smx_simcall_t simcall, int value) {
116   XBT_DEBUG("Handling simcall %p: %s", simcall, SIMIX_simcall_name(simcall->call));
117   SIMCALL_SET_MC_VALUE(simcall, value);
118   if (simcall->issuer->context->iwannadie && simcall->call != SIMCALL_PROCESS_CLEANUP)
119     return;
120   switch (simcall->call) {
121 case SIMCALL_VM_SUSPEND:
122        simcall_HANDLER_vm_suspend(simcall , (sg_host_t) simcall->args[0].dp);
123       SIMIX_simcall_answer(simcall);
124       break;  
125
126 case SIMCALL_VM_RESUME:
127        simcall_HANDLER_vm_resume(simcall , (sg_host_t) simcall->args[0].dp);
128       SIMIX_simcall_answer(simcall);
129       break;  
130
131 case SIMCALL_VM_SHUTDOWN:
132        simcall_HANDLER_vm_shutdown(simcall , (sg_host_t) simcall->args[0].dp);
133       SIMIX_simcall_answer(simcall);
134       break;  
135
136 case SIMCALL_VM_SAVE:
137        simcall_HANDLER_vm_save(simcall , (sg_host_t) simcall->args[0].dp);
138       SIMIX_simcall_answer(simcall);
139       break;  
140
141 case SIMCALL_VM_RESTORE:
142        simcall_HANDLER_vm_restore(simcall , (sg_host_t) simcall->args[0].dp);
143       SIMIX_simcall_answer(simcall);
144       break;  
145
146 case SIMCALL_PROCESS_CREATE:
147       simcall->result.dp = simcall_HANDLER_process_create(simcall ,  simcall->args[0].cc, (xbt_main_func_t) simcall->args[1].fp,  simcall->args[2].dp,  simcall->args[3].cc,  simcall->args[4].d,  simcall->args[5].i, (char**) simcall->args[6].dp, (xbt_dict_t) simcall->args[7].dp,  simcall->args[8].i);
148       SIMIX_simcall_answer(simcall);
149       break;  
150
151 case SIMCALL_PROCESS_KILL:
152        simcall_HANDLER_process_kill(simcall , (smx_process_t) simcall->args[0].dp);
153       SIMIX_simcall_answer(simcall);
154       break;  
155
156 case SIMCALL_PROCESS_KILLALL:
157        simcall_HANDLER_process_killall(simcall ,  simcall->args[0].i);
158       SIMIX_simcall_answer(simcall);
159       break;  
160
161 case SIMCALL_PROCESS_CLEANUP:
162        SIMIX_process_cleanup((smx_process_t) simcall->args[0].dp);
163       SIMIX_simcall_answer(simcall);
164       break;  
165
166 case SIMCALL_PROCESS_SUSPEND:
167        simcall_HANDLER_process_suspend(simcall , (smx_process_t) simcall->args[0].dp);
168        break;  
169
170 case SIMCALL_PROCESS_RESUME:
171        simcall_HANDLER_process_resume(simcall , (smx_process_t) simcall->args[0].dp);
172       SIMIX_simcall_answer(simcall);
173       break;  
174
175 case SIMCALL_PROCESS_SET_HOST:
176        simcall_HANDLER_process_set_host(simcall , (smx_process_t) simcall->args[0].dp, (sg_host_t) simcall->args[1].dp);
177       SIMIX_simcall_answer(simcall);
178       break;  
179
180 case SIMCALL_PROCESS_IS_SUSPENDED:
181       simcall->result.i = SIMIX_process_is_suspended((smx_process_t) simcall->args[0].dp);
182       SIMIX_simcall_answer(simcall);
183       break;  
184
185 case SIMCALL_PROCESS_JOIN:
186        simcall_HANDLER_process_join(simcall , (smx_process_t) simcall->args[0].dp,  simcall->args[1].d);
187        break;  
188
189 case SIMCALL_PROCESS_SLEEP:
190        simcall_HANDLER_process_sleep(simcall ,  simcall->args[0].d);
191        break;  
192
193 case SIMCALL_EXECUTION_START:
194       simcall->result.dp = simcall_HANDLER_execution_start(simcall ,  simcall->args[0].cc,  simcall->args[1].d,  simcall->args[2].d,  simcall->args[3].d,  simcall->args[4].ul);
195       SIMIX_simcall_answer(simcall);
196       break;  
197
198 case SIMCALL_EXECUTION_PARALLEL_START:
199       simcall->result.dp = SIMIX_execution_parallel_start( simcall->args[0].cc, simcall->args[1].i,(sg_host_t*) simcall->args[2].dp,(double*) simcall->args[3].dp,(double*) simcall->args[4].dp, simcall->args[5].d, simcall->args[6].d);
200       SIMIX_simcall_answer(simcall);
201       break;  
202
203 case SIMCALL_EXECUTION_DESTROY:
204        SIMIX_execution_destroy((smx_synchro_t) simcall->args[0].dp);
205       SIMIX_simcall_answer(simcall);
206       break;  
207
208 case SIMCALL_EXECUTION_CANCEL:
209        SIMIX_execution_cancel((smx_synchro_t) simcall->args[0].dp);
210       SIMIX_simcall_answer(simcall);
211       break;  
212
213 case SIMCALL_EXECUTION_GET_REMAINS:
214       simcall->result.d = SIMIX_execution_get_remains((smx_synchro_t) simcall->args[0].dp);
215       SIMIX_simcall_answer(simcall);
216       break;  
217
218 case SIMCALL_EXECUTION_GET_STATE:
219       simcall->result.i = SIMIX_execution_get_state((smx_synchro_t) simcall->args[0].dp);
220       SIMIX_simcall_answer(simcall);
221       break;  
222
223 case SIMCALL_EXECUTION_SET_PRIORITY:
224        SIMIX_execution_set_priority((smx_synchro_t) simcall->args[0].dp, simcall->args[1].d);
225       SIMIX_simcall_answer(simcall);
226       break;  
227
228 case SIMCALL_EXECUTION_SET_BOUND:
229        SIMIX_execution_set_bound((smx_synchro_t) simcall->args[0].dp, simcall->args[1].d);
230       SIMIX_simcall_answer(simcall);
231       break;  
232
233 case SIMCALL_EXECUTION_SET_AFFINITY:
234        SIMIX_execution_set_affinity((smx_synchro_t) simcall->args[0].dp,(sg_host_t) simcall->args[1].dp, simcall->args[2].ul);
235       SIMIX_simcall_answer(simcall);
236       break;  
237
238 case SIMCALL_EXECUTION_WAIT:
239        simcall_HANDLER_execution_wait(simcall , (smx_synchro_t) simcall->args[0].dp);
240        break;  
241
242 case SIMCALL_PROCESS_ON_EXIT:
243        SIMIX_process_on_exit((smx_process_t) simcall->args[0].dp,(int_f_pvoid_pvoid_t) simcall->args[1].fp, simcall->args[2].dp);
244       SIMIX_simcall_answer(simcall);
245       break;  
246
247 case SIMCALL_PROCESS_AUTO_RESTART_SET:
248        SIMIX_process_auto_restart_set((smx_process_t) simcall->args[0].dp, simcall->args[1].i);
249       SIMIX_simcall_answer(simcall);
250       break;  
251
252 case SIMCALL_PROCESS_RESTART:
253       simcall->result.dp = simcall_HANDLER_process_restart(simcall , (smx_process_t) simcall->args[0].dp);
254       SIMIX_simcall_answer(simcall);
255       break;  
256
257 case SIMCALL_MBOX_CREATE:
258       simcall->result.dp = SIMIX_mbox_create( simcall->args[0].cc);
259       SIMIX_simcall_answer(simcall);
260       break;  
261
262 case SIMCALL_MBOX_DESTROY:
263        SIMIX_mbox_destroy((smx_mailbox_t) simcall->args[0].dp);
264       SIMIX_simcall_answer(simcall);
265       break;  
266
267 case SIMCALL_MBOX_COMM_COUNT_BY_HOST:
268       simcall->result.ui = SIMIX_mbox_comm_count_by_host((smx_mailbox_t) simcall->args[0].dp,(sg_host_t) simcall->args[1].dp);
269       SIMIX_simcall_answer(simcall);
270       break;  
271
272 case SIMCALL_MBOX_GET_HEAD:
273       simcall->result.dp = SIMIX_mbox_get_head((smx_mailbox_t) simcall->args[0].dp);
274       SIMIX_simcall_answer(simcall);
275       break;  
276
277 case SIMCALL_MBOX_SET_RECEIVER:
278        SIMIX_mbox_set_receiver((smx_mailbox_t) simcall->args[0].dp,(smx_process_t) simcall->args[1].dp);
279       SIMIX_simcall_answer(simcall);
280       break;  
281
282 case SIMCALL_MBOX_GET_RECEIVER:
283       simcall->result.dp = SIMIX_mbox_get_receiver((smx_mailbox_t) simcall->args[0].dp);
284       SIMIX_simcall_answer(simcall);
285       break;  
286
287 case SIMCALL_COMM_IPROBE:
288       simcall->result.dp = simcall_HANDLER_comm_iprobe(simcall , (smx_mailbox_t) simcall->args[0].dp,  simcall->args[1].i,  simcall->args[2].i,  simcall->args[3].i, (simix_match_func_t) simcall->args[4].fp,  simcall->args[5].dp);
289       SIMIX_simcall_answer(simcall);
290       break;  
291
292 case SIMCALL_COMM_SEND:
293        simcall_HANDLER_comm_send(simcall , (smx_process_t) simcall->args[0].dp, (smx_mailbox_t) simcall->args[1].dp,  simcall->args[2].d,  simcall->args[3].d,  simcall->args[4].dp,  simcall->args[5].sz, (simix_match_func_t) simcall->args[6].fp, (simix_copy_data_func_t) simcall->args[7].fp,  simcall->args[8].dp,  simcall->args[9].d);
294        break;  
295
296 case SIMCALL_COMM_ISEND:
297       simcall->result.dp = simcall_HANDLER_comm_isend(simcall , (smx_process_t) simcall->args[0].dp, (smx_mailbox_t) simcall->args[1].dp,  simcall->args[2].d,  simcall->args[3].d,  simcall->args[4].dp,  simcall->args[5].sz, (simix_match_func_t) simcall->args[6].fp, (simix_clean_func_t) simcall->args[7].fp, (simix_copy_data_func_t) simcall->args[8].fp,  simcall->args[9].dp,  simcall->args[10].i);
298       SIMIX_simcall_answer(simcall);
299       break;  
300
301 case SIMCALL_COMM_RECV:
302        simcall_HANDLER_comm_recv(simcall , (smx_process_t) simcall->args[0].dp, (smx_mailbox_t) simcall->args[1].dp,  simcall->args[2].dp, (size_t*) simcall->args[3].dp, (simix_match_func_t) simcall->args[4].fp, (simix_copy_data_func_t) simcall->args[5].fp,  simcall->args[6].dp,  simcall->args[7].d,  simcall->args[8].d);
303        break;  
304
305 case SIMCALL_COMM_IRECV:
306       simcall->result.dp = simcall_HANDLER_comm_irecv(simcall , (smx_process_t) simcall->args[0].dp, (smx_mailbox_t) simcall->args[1].dp,  simcall->args[2].dp, (size_t*) simcall->args[3].dp, (simix_match_func_t) simcall->args[4].fp, (simix_copy_data_func_t) simcall->args[5].fp,  simcall->args[6].dp,  simcall->args[7].d);
307       SIMIX_simcall_answer(simcall);
308       break;  
309
310 case SIMCALL_COMM_CANCEL:
311        SIMIX_comm_cancel((smx_synchro_t) simcall->args[0].dp);
312       SIMIX_simcall_answer(simcall);
313       break;  
314
315 case SIMCALL_COMM_WAITANY:
316        simcall_HANDLER_comm_waitany(simcall , (xbt_dynar_t) simcall->args[0].dp);
317        break;  
318
319 case SIMCALL_COMM_WAIT:
320        simcall_HANDLER_comm_wait(simcall , (smx_synchro_t) simcall->args[0].dp,  simcall->args[1].d);
321        break;  
322
323 case SIMCALL_COMM_TEST:
324        simcall_HANDLER_comm_test(simcall , (smx_synchro_t) simcall->args[0].dp);
325        break;  
326
327 case SIMCALL_COMM_TESTANY:
328        simcall_HANDLER_comm_testany(simcall , (xbt_dynar_t) simcall->args[0].dp);
329        break;  
330
331 case SIMCALL_COMM_GET_REMAINS:
332       simcall->result.d = SIMIX_comm_get_remains((smx_synchro_t) simcall->args[0].dp);
333       SIMIX_simcall_answer(simcall);
334       break;  
335
336 case SIMCALL_COMM_GET_STATE:
337       simcall->result.i = SIMIX_comm_get_state((smx_synchro_t) simcall->args[0].dp);
338       SIMIX_simcall_answer(simcall);
339       break;  
340
341 case SIMCALL_COMM_GET_SRC_DATA:
342       simcall->result.dp = SIMIX_comm_get_src_data((smx_synchro_t) simcall->args[0].dp);
343       SIMIX_simcall_answer(simcall);
344       break;  
345
346 case SIMCALL_COMM_GET_DST_DATA:
347       simcall->result.dp = SIMIX_comm_get_dst_data((smx_synchro_t) simcall->args[0].dp);
348       SIMIX_simcall_answer(simcall);
349       break;  
350
351 case SIMCALL_COMM_GET_SRC_PROC:
352       simcall->result.dp = SIMIX_comm_get_src_proc((smx_synchro_t) simcall->args[0].dp);
353       SIMIX_simcall_answer(simcall);
354       break;  
355
356 case SIMCALL_COMM_GET_DST_PROC:
357       simcall->result.dp = SIMIX_comm_get_dst_proc((smx_synchro_t) simcall->args[0].dp);
358       SIMIX_simcall_answer(simcall);
359       break;  
360
361 case SIMCALL_MUTEX_INIT:
362       simcall->result.dp = simcall_HANDLER_mutex_init(simcall );
363       SIMIX_simcall_answer(simcall);
364       break;  
365
366 case SIMCALL_MUTEX_LOCK:
367        simcall_HANDLER_mutex_lock(simcall , (smx_mutex_t) simcall->args[0].dp);
368        break;  
369
370 case SIMCALL_MUTEX_TRYLOCK:
371       simcall->result.i = simcall_HANDLER_mutex_trylock(simcall , (smx_mutex_t) simcall->args[0].dp);
372       SIMIX_simcall_answer(simcall);
373       break;  
374
375 case SIMCALL_MUTEX_UNLOCK:
376        simcall_HANDLER_mutex_unlock(simcall , (smx_mutex_t) simcall->args[0].dp);
377       SIMIX_simcall_answer(simcall);
378       break;  
379
380 case SIMCALL_COND_INIT:
381       simcall->result.dp = SIMIX_cond_init();
382       SIMIX_simcall_answer(simcall);
383       break;  
384
385 case SIMCALL_COND_SIGNAL:
386        SIMIX_cond_signal((smx_cond_t) simcall->args[0].dp);
387       SIMIX_simcall_answer(simcall);
388       break;  
389
390 case SIMCALL_COND_WAIT:
391        simcall_HANDLER_cond_wait(simcall , (smx_cond_t) simcall->args[0].dp, (smx_mutex_t) simcall->args[1].dp);
392        break;  
393
394 case SIMCALL_COND_WAIT_TIMEOUT:
395        simcall_HANDLER_cond_wait_timeout(simcall , (smx_cond_t) simcall->args[0].dp, (smx_mutex_t) simcall->args[1].dp,  simcall->args[2].d);
396        break;  
397
398 case SIMCALL_COND_BROADCAST:
399        SIMIX_cond_broadcast((smx_cond_t) simcall->args[0].dp);
400       SIMIX_simcall_answer(simcall);
401       break;  
402
403 case SIMCALL_SEM_INIT:
404       simcall->result.dp = SIMIX_sem_init( simcall->args[0].ui);
405       SIMIX_simcall_answer(simcall);
406       break;  
407
408 case SIMCALL_SEM_RELEASE:
409        simcall_HANDLER_sem_release(simcall , (smx_sem_t) simcall->args[0].dp);
410       SIMIX_simcall_answer(simcall);
411       break;  
412
413 case SIMCALL_SEM_WOULD_BLOCK:
414       simcall->result.i = simcall_HANDLER_sem_would_block(simcall , (smx_sem_t) simcall->args[0].dp);
415       SIMIX_simcall_answer(simcall);
416       break;  
417
418 case SIMCALL_SEM_ACQUIRE:
419        simcall_HANDLER_sem_acquire(simcall , (smx_sem_t) simcall->args[0].dp);
420        break;  
421
422 case SIMCALL_SEM_ACQUIRE_TIMEOUT:
423        simcall_HANDLER_sem_acquire_timeout(simcall , (smx_sem_t) simcall->args[0].dp,  simcall->args[1].d);
424        break;  
425
426 case SIMCALL_SEM_GET_CAPACITY:
427       simcall->result.i = simcall_HANDLER_sem_get_capacity(simcall , (smx_sem_t) simcall->args[0].dp);
428       SIMIX_simcall_answer(simcall);
429       break;  
430
431 case SIMCALL_FILE_READ:
432        simcall_HANDLER_file_read(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgsz, (sg_host_t) simcall->args[2].dp);
433        break;  
434
435 case SIMCALL_FILE_WRITE:
436        simcall_HANDLER_file_write(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgsz, (sg_host_t) simcall->args[2].dp);
437        break;  
438
439 case SIMCALL_FILE_OPEN:
440        simcall_HANDLER_file_open(simcall ,  simcall->args[0].cc, (sg_host_t) simcall->args[1].dp);
441        break;  
442
443 case SIMCALL_FILE_CLOSE:
444        simcall_HANDLER_file_close(simcall , (smx_file_t) simcall->args[0].dp, (sg_host_t) simcall->args[1].dp);
445        break;  
446
447 case SIMCALL_FILE_UNLINK:
448       simcall->result.i = SIMIX_file_unlink((smx_file_t) simcall->args[0].dp,(sg_host_t) simcall->args[1].dp);
449       SIMIX_simcall_answer(simcall);
450       break;  
451
452 case SIMCALL_FILE_GET_SIZE:
453       simcall->result.sgsz = simcall_HANDLER_file_get_size(simcall , (smx_file_t) simcall->args[0].dp);
454       SIMIX_simcall_answer(simcall);
455       break;  
456
457 case SIMCALL_FILE_TELL:
458       simcall->result.sgsz = simcall_HANDLER_file_tell(simcall , (smx_file_t) simcall->args[0].dp);
459       SIMIX_simcall_answer(simcall);
460       break;  
461
462 case SIMCALL_FILE_SEEK:
463       simcall->result.i = simcall_HANDLER_file_seek(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgoff,  simcall->args[2].i);
464       SIMIX_simcall_answer(simcall);
465       break;  
466
467 case SIMCALL_FILE_GET_INFO:
468       simcall->result.dp = simcall_HANDLER_file_get_info(simcall , (smx_file_t) simcall->args[0].dp);
469       SIMIX_simcall_answer(simcall);
470       break;  
471
472 case SIMCALL_FILE_MOVE:
473       simcall->result.i = simcall_HANDLER_file_move(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].cc);
474       SIMIX_simcall_answer(simcall);
475       break;  
476
477 case SIMCALL_STORAGE_GET_FREE_SIZE:
478       simcall->result.sgsz = simcall_HANDLER_storage_get_free_size(simcall , (smx_storage_t) simcall->args[0].dp);
479       SIMIX_simcall_answer(simcall);
480       break;  
481
482 case SIMCALL_STORAGE_GET_USED_SIZE:
483       simcall->result.sgsz = simcall_HANDLER_storage_get_used_size(simcall , (smx_storage_t) simcall->args[0].dp);
484       SIMIX_simcall_answer(simcall);
485       break;  
486
487 case SIMCALL_STORAGE_GET_PROPERTIES:
488       simcall->result.dp = SIMIX_storage_get_properties((smx_storage_t) simcall->args[0].dp);
489       SIMIX_simcall_answer(simcall);
490       break;  
491
492 case SIMCALL_STORAGE_GET_CONTENT:
493       simcall->result.dp = SIMIX_storage_get_content((smx_storage_t) simcall->args[0].dp);
494       SIMIX_simcall_answer(simcall);
495       break;  
496
497 case SIMCALL_ASR_GET_PROPERTIES:
498       simcall->result.dp = simcall_HANDLER_asr_get_properties(simcall ,  simcall->args[0].cc);
499       SIMIX_simcall_answer(simcall);
500       break;  
501
502 case SIMCALL_MC_RANDOM:
503       simcall->result.i = simcall_HANDLER_mc_random(simcall ,  simcall->args[0].i,  simcall->args[1].i);
504       SIMIX_simcall_answer(simcall);
505       break;  
506
507 case SIMCALL_SET_CATEGORY:
508        SIMIX_set_category((smx_synchro_t) simcall->args[0].dp, simcall->args[1].cc);
509       SIMIX_simcall_answer(simcall);
510       break;  
511
512 case SIMCALL_RUN_KERNEL:
513        SIMIX_run_kernel( simcall->args[0].dp);
514       SIMIX_simcall_answer(simcall);
515       break;  
516     case NUM_SIMCALLS:
517       break;
518     case SIMCALL_NONE:
519       THROWF(arg_error,0,"Asked to do the noop syscall on %s@%s",
520           SIMIX_process_get_name(simcall->issuer),
521           sg_host_get_name(SIMIX_process_get_host(simcall->issuer))
522           );
523       break;
524
525   }
526 }