Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a function ls to storage
[simgrid.git] / include / simgrid / simix.h
1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef _SIMIX_SIMIX_H
8 #define _SIMIX_SIMIX_H
9
10 #include "xbt/misc.h"
11 #include "xbt/fifo.h"
12 #include "xbt/dict.h"
13 #include "xbt/file_stat.h"
14 #include "xbt/function_types.h"
15 #include "xbt/parmap.h"
16 #include "xbt/swag.h"
17
18 SG_BEGIN_DECL()
19
20
21 /* ******************************** Host ************************************ */
22 /** @brief Host datatype
23     @ingroup simix_host_management
24
25     A <em>location</em> (or <em>host</em>) is any possible place where
26     a process may run. Thus it is represented as a <em>physical
27     resource with computing capabilities</em>, some <em>mailboxes</em>
28     to enable running process to communicate with remote ones, and
29     some <em>private data</em> that can be only accessed by local
30     process.
31
32     \see m_host_management
33   @{ */
34 typedef struct s_smx_host *smx_host_t;
35 typedef enum {
36   SIMIX_WAITING,
37   SIMIX_READY,
38   SIMIX_RUNNING,
39   SIMIX_DONE,
40   SIMIX_CANCELED,
41   SIMIX_FAILED,
42   SIMIX_SRC_HOST_FAILURE,
43   SIMIX_DST_HOST_FAILURE,
44   SIMIX_SRC_TIMEOUT,
45   SIMIX_DST_TIMEOUT,
46   SIMIX_LINK_FAILURE
47 } e_smx_state_t;
48 /** @} */
49
50
51 typedef struct s_smx_timer* smx_timer_t;
52
53 /* ******************************** Synchro ************************************ */
54 /**
55  * \ingroup simix_synchro_management
56  */
57 typedef struct s_smx_mutex *smx_mutex_t;
58 /**
59  * \ingroup simix_synchro_management
60  */
61 typedef struct s_smx_cond *smx_cond_t;
62 /**
63  * \ingroup simix_synchro_management
64  */
65 typedef struct s_smx_sem *smx_sem_t;
66
67 /********************************** File *************************************/
68 typedef struct s_smx_file *smx_file_t;
69 typedef struct s_smx_stat *smx_stat_t;
70
71 /********************************** Action *************************************/
72 typedef struct s_smx_action *smx_action_t; /* FIXME: replace by specialized action handlers */
73
74
75
76 /* ****************************** Process *********************************** */
77 /** @brief Process datatype
78     @ingroup simix_process_management
79
80     A processt may be defined as a <em>code</em>, with some <em>private
81     data</em>, executing in a <em>location</em>.
82     \see m_process_management
83   @{ */
84 typedef struct s_smx_process *smx_process_t;
85 /** @} */
86
87
88 /*
89  * Type of function that creates a process.
90  * The function must accept the following parameters:
91  * void* process: the process created will be stored there
92  * const char *name: a name for the object. It is for user-level information and can be NULL
93  * xbt_main_func_t code: is a function describing the behavior of the process
94  * void *data: data a pointer to any data one may want to attach to the new object.
95  * smx_host_t host: the location where the new process is executed
96  * int argc, char **argv: parameters passed to code
97  * xbt_dict_t pros: properties
98  */
99 typedef void (*smx_creation_func_t) ( /* process */ smx_process_t*,
100                                       /* name */ const char*,
101                                       /* code */ xbt_main_func_t,
102                                       /* userdata */ void*,
103                                       /* hostname */ const char*,
104                                       /* kill_time */ double,
105                                       /* argc */ int,
106                                       /* argv */ char**,
107                                       /* props */ xbt_dict_t,
108                                       /* auto_restart */ int);
109
110
111 /******************************* Networking ***********************************/
112 /**
113  * \ingroup simix_rdv_management
114  */
115 typedef struct s_smx_rvpoint *smx_rdv_t;
116
117 /******************************** Context *************************************/
118 typedef struct s_smx_context *smx_context_t;
119 typedef struct s_smx_context_factory *smx_context_factory_t;
120
121 /* Process creation/destruction callbacks */
122 typedef void (*void_pfn_smxprocess_t) (smx_process_t);
123 /* Process kill */
124 typedef void (*void_pfn_smxprocess_t_smxprocess_t) (smx_process_t, smx_process_t);
125 /* for auto-restart function */
126 typedef void (*void_pfn_smxhost_t) (smx_host_t);
127
128 /* The following function pointer types describe the interface that any context
129    factory should implement */
130
131
132 typedef smx_context_t(*smx_pfn_context_factory_create_context_t)
133   (xbt_main_func_t, int, char **, void_pfn_smxprocess_t, void* data);
134 typedef int (*smx_pfn_context_factory_finalize_t) (smx_context_factory_t*);
135 typedef void (*smx_pfn_context_free_t) (smx_context_t);
136 typedef void (*smx_pfn_context_start_t) (smx_context_t);
137 typedef void (*smx_pfn_context_stop_t) (smx_context_t);
138 typedef void (*smx_pfn_context_suspend_t) (smx_context_t context);
139 typedef void (*smx_pfn_context_runall_t) (void);
140 typedef smx_context_t (*smx_pfn_context_self_t) (void);
141 typedef void* (*smx_pfn_context_get_data_t) (smx_context_t context);
142
143 /* interface of the context factories */
144 typedef struct s_smx_context_factory {
145   const char *name;
146   smx_pfn_context_factory_create_context_t create_context;
147   smx_pfn_context_factory_finalize_t finalize;
148   smx_pfn_context_free_t free;
149   smx_pfn_context_stop_t stop;
150   smx_pfn_context_suspend_t suspend;
151   smx_pfn_context_runall_t runall;
152   smx_pfn_context_self_t self;
153   smx_pfn_context_get_data_t get_data;
154 } s_smx_context_factory_t;
155
156 /* Hack: let msg load directly the right factory */
157 typedef void (*smx_ctx_factory_initializer_t)(smx_context_factory_t*);
158 XBT_PUBLIC(smx_ctx_factory_initializer_t) smx_factory_initializer_to_use;
159 extern char* smx_context_factory_name;
160 extern int smx_context_stack_size;
161
162 #ifdef HAVE_THREAD_LOCAL_STORAGE
163 extern __thread smx_context_t smx_current_context;
164 #else
165 extern smx_context_t smx_current_context;
166 #endif
167
168 /* *********************** */
169 /* Context type definition */
170 /* *********************** */
171 /* the following function pointers types describe the interface that all context
172    concepts must implement */
173 /* each context type derive from this structure, so they must contain this structure
174  * at their beginning -- OOP in C :/ */
175 typedef struct s_smx_context {
176   s_xbt_swag_hookup_t hookup;
177   xbt_main_func_t code;
178   void_pfn_smxprocess_t cleanup_func;
179   void *data;   /* Here SIMIX stores the smx_process_t containing the context */
180   char **argv;
181   int argc;
182   unsigned iwannadie:1;
183 } s_smx_ctx_base_t;
184
185 /* methods of this class */
186 XBT_PUBLIC(void) smx_ctx_base_factory_init(smx_context_factory_t *factory);
187 XBT_PUBLIC(int) smx_ctx_base_factory_finalize(smx_context_factory_t *factory);
188
189 XBT_PUBLIC(smx_context_t)
190 smx_ctx_base_factory_create_context_sized(size_t size,
191                                           xbt_main_func_t code, int argc,
192                                           char **argv,
193                                           void_pfn_smxprocess_t cleanup,
194                                           void* data);
195 XBT_PUBLIC(void) smx_ctx_base_free(smx_context_t context);
196 XBT_PUBLIC(void) smx_ctx_base_stop(smx_context_t context);
197 XBT_PUBLIC(smx_context_t) smx_ctx_base_self(void);
198 XBT_PUBLIC(void) *smx_ctx_base_get_data(smx_context_t context);
199
200 XBT_PUBLIC(xbt_dynar_t) SIMIX_process_get_runnable(void);
201 XBT_PUBLIC(smx_process_t) SIMIX_process_from_PID(int PID);
202 XBT_PUBLIC(xbt_dynar_t) SIMIX_processes_as_dynar(void);
203
204 /* parallelism */
205 XBT_PUBLIC(int) SIMIX_context_is_parallel(void);
206 XBT_PUBLIC(int) SIMIX_context_get_nthreads(void);
207 XBT_PUBLIC(void) SIMIX_context_set_nthreads(int nb_threads);
208 XBT_PUBLIC(int) SIMIX_context_get_parallel_threshold(void);
209 XBT_PUBLIC(void) SIMIX_context_set_parallel_threshold(int threshold);
210 XBT_PUBLIC(e_xbt_parmap_mode_t) SIMIX_context_get_parallel_mode(void);
211 XBT_PUBLIC(void) SIMIX_context_set_parallel_mode(e_xbt_parmap_mode_t mode);
212
213
214
215 /********************************** Global ************************************/
216 /* Initialization and exit */
217 XBT_PUBLIC(void) SIMIX_global_init(int *argc, char **argv);
218 XBT_PUBLIC(void) SIMIX_clean(void);
219
220
221 XBT_PUBLIC(void) SIMIX_function_register_process_cleanup(void_pfn_smxprocess_t function);
222 XBT_PUBLIC(void) SIMIX_function_register_process_create(smx_creation_func_t function);
223 XBT_PUBLIC(void) SIMIX_function_register_process_kill(void_pfn_smxprocess_t_smxprocess_t function);
224
225 /* Simulation execution */
226 XBT_PUBLIC(void) SIMIX_run(void);    
227 XBT_PUBLIC(double) SIMIX_get_clock(void);
228
229 /* Timer functions FIXME: should these be public? */
230 XBT_PUBLIC(void) SIMIX_timer_set(double date, void *function, void *arg);
231 XBT_PUBLIC(double) SIMIX_timer_next(void);
232
233 XBT_PUBLIC(void) SIMIX_display_process_status(void);
234
235 /******************************* Environment **********************************/
236 XBT_PUBLIC(void) SIMIX_create_environment(const char *file);
237
238 /******************************** Deployment **********************************/
239
240 XBT_PUBLIC(void) SIMIX_function_register(const char *name, xbt_main_func_t code);
241 XBT_PUBLIC(void) SIMIX_function_register_default(xbt_main_func_t code);
242 XBT_PUBLIC(xbt_main_func_t) SIMIX_get_registered_function(const char *name);
243 XBT_PUBLIC(void) SIMIX_launch_application(const char *file);
244 XBT_PUBLIC(void) SIMIX_process_set_function(const char* process_host,
245                                             const char *process_function,
246                                             xbt_dynar_t arguments,
247                                             double process_start_time,
248                                             double process_kill_time);
249
250 /*********************************** Host *************************************/
251 XBT_PUBLIC(xbt_dict_t) SIMIX_host_get_dict(void);
252 XBT_PUBLIC(smx_host_t) SIMIX_host_get_by_name(const char *name);
253 XBT_PUBLIC(smx_host_t) SIMIX_host_self(void);
254 XBT_PUBLIC(const char*) SIMIX_host_self_get_name(void);
255 XBT_PUBLIC(const char*) SIMIX_host_get_name(smx_host_t host); /* FIXME: make private: only the name of SIMIX_host_self() should be public without request */
256 XBT_PUBLIC(void) SIMIX_host_self_set_data(void *data);
257 XBT_PUBLIC(void*) SIMIX_host_self_get_data(void);
258 XBT_PUBLIC(void*) SIMIX_host_get_data(smx_host_t host);
259 XBT_PUBLIC(void) SIMIX_host_set_data(smx_host_t host, void *data);
260
261 /********************************* Process ************************************/
262 XBT_PUBLIC(int) SIMIX_process_count(void);
263 XBT_PUBLIC(smx_process_t) SIMIX_process_self(void);
264 XBT_PUBLIC(const char*) SIMIX_process_self_get_name(void);
265 XBT_PUBLIC(void) SIMIX_process_self_set_data(smx_process_t self, void *data);
266 XBT_PUBLIC(void*) SIMIX_process_self_get_data(smx_process_t self);
267 XBT_PUBLIC(smx_context_t) SIMIX_process_get_context(smx_process_t);
268 XBT_PUBLIC(void) SIMIX_process_set_context(smx_process_t p,smx_context_t c);
269 XBT_PUBLIC(int) SIMIX_process_has_pending_comms(smx_process_t process);
270 XBT_PUBLIC(void) SIMIX_process_on_exit_runall(smx_process_t process);
271 XBT_PUBLIC(void) SIMIX_process_on_exit(smx_process_t process, int_f_pvoid_t fun, void *data);
272
273 /****************************** Communication *********************************/
274 XBT_PUBLIC(void) SIMIX_comm_set_copy_data_callback(void (*callback) (smx_action_t, void*, size_t));
275 XBT_PUBLIC(void) SIMIX_comm_copy_pointer_callback(smx_action_t comm, void* buff, size_t buff_size);
276 XBT_PUBLIC(void) SIMIX_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size);
277 XBT_PUBLIC(void) smpi_comm_copy_data_callback(smx_action_t comm, void* buff, size_t buff_size);
278
279 XBT_PUBLIC(smx_action_t) SIMIX_comm_get_send_match(smx_rdv_t rdv, int (*match_fun)(void*, void*), void* data);
280 XBT_PUBLIC(int) SIMIX_comm_has_send_match(smx_rdv_t rdv, int (*match_fun)(void*, void*), void* data);
281 XBT_PUBLIC(int) SIMIX_comm_has_recv_match(smx_rdv_t rdv, int (*match_fun)(void*, void*), void* data);
282 XBT_PUBLIC(void) SIMIX_comm_finish(smx_action_t action);
283
284 /******************************************************************************/
285 /*                            SIMIX simcalls                                  */
286 /******************************************************************************/
287 /* These functions are a system call-like interface to the simulation kernel. */
288 /* They can also be called from maestro's context, and they are thread safe.  */
289 /******************************************************************************/
290
291 /******************************* Host simcalls ********************************/
292 /* TODO use handlers and keep smx_host_t hidden from higher levels */
293 XBT_PUBLIC(xbt_dict_t) simcall_host_get_dict(void);
294 XBT_PUBLIC(smx_host_t) simcall_host_get_by_name(const char *name);
295 XBT_PUBLIC(const char *) simcall_host_get_name(smx_host_t host);
296 XBT_PUBLIC(xbt_dict_t) simcall_host_get_properties(smx_host_t host);
297 XBT_PUBLIC(double) simcall_host_get_speed(smx_host_t host);
298 XBT_PUBLIC(double) simcall_host_get_available_speed(smx_host_t host);
299 /* Two possible states, 1 - CPU ON and 0 CPU OFF */
300 XBT_PUBLIC(int) simcall_host_get_state(smx_host_t host);
301 XBT_PUBLIC(void *) simcall_host_get_data(smx_host_t host);
302
303 XBT_PUBLIC(void) simcall_host_set_data(smx_host_t host, void *data);
304
305 XBT_PUBLIC(smx_action_t) simcall_host_execute(const char *name, smx_host_t host,
306                                                 double computation_amount,
307                                                 double priority);
308 XBT_PUBLIC(smx_action_t) simcall_host_parallel_execute(const char *name,
309                                                      int host_nb,
310                                                      smx_host_t *host_list,
311                                                      double *computation_amount,
312                                                      double *communication_amount,
313                                                      double amount,
314                                                      double rate);
315 XBT_PUBLIC(void) simcall_host_execution_destroy(smx_action_t execution);
316 XBT_PUBLIC(void) simcall_host_execution_cancel(smx_action_t execution);
317 XBT_PUBLIC(double) simcall_host_execution_get_remains(smx_action_t execution);
318 XBT_PUBLIC(e_smx_state_t) simcall_host_execution_get_state(smx_action_t execution);
319 XBT_PUBLIC(void) simcall_host_execution_set_priority(smx_action_t execution, double priority);
320 XBT_PUBLIC(e_smx_state_t) simcall_host_execution_wait(smx_action_t execution);
321
322
323 /**************************** Process simcalls ********************************/
324 /* Constructor and Destructor */
325 XBT_PUBLIC(void) simcall_process_create(smx_process_t *process,
326                                           const char *name,
327                                           xbt_main_func_t code,
328                                           void *data,
329                                           const char *hostname,
330                                           double kill_time,
331                                           int argc, char **argv,
332                                           xbt_dict_t properties,
333                                           int auto_restart);
334
335 XBT_PUBLIC(void) simcall_process_kill(smx_process_t process);
336 XBT_PUBLIC(void) simcall_process_killall(void);
337
338 /* Process handling */
339 XBT_PUBLIC(void) simcall_process_cleanup(smx_process_t process);
340 XBT_PUBLIC(void) simcall_process_change_host(smx_process_t process,
341                  smx_host_t dest);
342 XBT_PUBLIC(void) simcall_process_suspend(smx_process_t process);
343 XBT_PUBLIC(void) simcall_process_resume(smx_process_t process);
344
345 /* Getters and Setters */
346 XBT_PUBLIC(int) simcall_process_count(void);
347 XBT_PUBLIC(void *) simcall_process_get_data(smx_process_t process);
348 XBT_PUBLIC(void) simcall_process_set_data(smx_process_t process, void *data);
349 XBT_PUBLIC(smx_host_t) simcall_process_get_host(smx_process_t process);
350 XBT_PUBLIC(const char *) simcall_process_get_name(smx_process_t process);
351 XBT_PUBLIC(int) simcall_process_is_suspended(smx_process_t process);
352 XBT_PUBLIC(xbt_dict_t) simcall_process_get_properties(smx_process_t host);
353 XBT_PUBLIC(void) simcall_process_set_kill_time(smx_process_t process, double kill_time);
354 XBT_PUBLIC(void) simcall_process_on_exit(smx_process_t process, int_f_pvoid_t fun, void *data);
355 XBT_PUBLIC(void) simcall_process_auto_restart_set(smx_process_t process, int auto_restart);
356 XBT_PUBLIC(smx_process_t) simcall_process_restart(smx_process_t process);
357 /* Sleep control */
358 XBT_PUBLIC(e_smx_state_t) simcall_process_sleep(double duration);
359
360 /************************** Comunication simcalls *****************************/
361 /***** Rendez-vous points *****/
362
363 XBT_PUBLIC(smx_rdv_t) simcall_rdv_create(const char *name);
364 XBT_PUBLIC(void) simcall_rdv_destroy(smx_rdv_t rvp);
365 XBT_PUBLIC(smx_rdv_t) simcall_rdv_get_by_name(const char *name);
366 XBT_PUBLIC(int) simcall_rdv_comm_count_by_host(smx_rdv_t rdv, smx_host_t host);
367 XBT_PUBLIC(smx_action_t) simcall_rdv_get_head(smx_rdv_t rdv);
368 XBT_PUBLIC(smx_process_t) simcall_rdv_get_receiver(smx_rdv_t rdv);
369 XBT_PUBLIC(void) simcall_rdv_set_receiver(smx_rdv_t rdv , smx_process_t process);
370
371 XBT_PUBLIC(xbt_dict_t) SIMIX_get_rdv_points(void);
372
373 /***** Communication simcalls *****/
374
375 XBT_PUBLIC(void) simcall_comm_send(smx_rdv_t rdv, double task_size,
376                                      double rate, void *src_buff,
377                                      size_t src_buff_size,
378                                      int (*match_fun)(void *, void *, smx_action_t),
379                                      void *data, double timeout);
380
381 XBT_PUBLIC(smx_action_t) simcall_comm_isend(smx_rdv_t rdv, double task_size,
382                                               double rate, void *src_buff,
383                                               size_t src_buff_size,
384                                               int (*match_fun)(void *, void *, smx_action_t),
385                                               void (*clean_fun)(void *),
386                                               void *data, int detached);
387
388 XBT_PUBLIC(void) simcall_comm_recv(smx_rdv_t rdv, void *dst_buff,
389                                      size_t * dst_buff_size,
390                                      int (*match_fun)(void *, void *, smx_action_t),
391                                      void *data, double timeout);
392
393 XBT_PUBLIC(smx_action_t) simcall_comm_irecv(smx_rdv_t rdv, void *dst_buff,
394                                               size_t * dst_buff_size,
395                                               int (*match_fun)(void *, void *, smx_action_t),
396                                               void *data);
397
398 XBT_PUBLIC(void) simcall_comm_destroy(smx_action_t comm);
399
400 XBT_PUBLIC(void) simcall_comm_cancel(smx_action_t comm);
401
402 /* FIXME: waitany is going to be a vararg function, and should take a timeout */
403 XBT_PUBLIC(unsigned int) simcall_comm_waitany(xbt_dynar_t comms);
404 XBT_PUBLIC(void) simcall_comm_wait(smx_action_t comm, double timeout);
405 XBT_PUBLIC(int) simcall_comm_test(smx_action_t comm);
406 XBT_PUBLIC(int) simcall_comm_testany(xbt_dynar_t comms);
407
408 /* Getters and setters */
409 XBT_PUBLIC(double) simcall_comm_get_remains(smx_action_t comm);
410 XBT_PUBLIC(e_smx_state_t) simcall_comm_get_state(smx_action_t comm);
411 XBT_PUBLIC(void *) simcall_comm_get_src_data(smx_action_t comm);
412 XBT_PUBLIC(void *) simcall_comm_get_dst_data(smx_action_t comm);
413 XBT_PUBLIC(smx_process_t) simcall_comm_get_src_proc(smx_action_t comm);
414 XBT_PUBLIC(smx_process_t) simcall_comm_get_dst_proc(smx_action_t comm);
415
416 #ifdef HAVE_LATENCY_BOUND_TRACKING
417 XBT_PUBLIC(int) simcall_comm_is_latency_bounded(smx_action_t comm);
418 #endif
419
420 #ifdef HAVE_TRACING
421 /************************** Tracing handling **********************************/
422 XBT_PUBLIC(void) simcall_set_category(smx_action_t action, const char *category);
423 #endif
424
425 /************************** Synchro simcalls **********************************/
426
427 XBT_PUBLIC(smx_mutex_t) simcall_mutex_init(void);
428 XBT_PUBLIC(void) simcall_mutex_destroy(smx_mutex_t mutex);
429 XBT_PUBLIC(void) simcall_mutex_lock(smx_mutex_t mutex);
430 XBT_PUBLIC(int) simcall_mutex_trylock(smx_mutex_t mutex);
431 XBT_PUBLIC(void) simcall_mutex_unlock(smx_mutex_t mutex);
432
433 XBT_PUBLIC(smx_cond_t) simcall_cond_init(void);
434 XBT_PUBLIC(void) simcall_cond_destroy(smx_cond_t cond);
435 XBT_PUBLIC(void) simcall_cond_signal(smx_cond_t cond);
436 XBT_PUBLIC(void) simcall_cond_wait(smx_cond_t cond, smx_mutex_t mutex);
437 XBT_PUBLIC(void) simcall_cond_wait_timeout(smx_cond_t cond,
438                                          smx_mutex_t mutex,
439                                          double max_duration);
440 XBT_PUBLIC(void) simcall_cond_broadcast(smx_cond_t cond);
441
442 XBT_PUBLIC(smx_sem_t) simcall_sem_init(int capacity);
443 XBT_PUBLIC(void) simcall_sem_destroy(smx_sem_t sem);
444 XBT_PUBLIC(void) simcall_sem_release(smx_sem_t sem);
445 XBT_PUBLIC(void) simcall_sem_release_forever(smx_sem_t sem);
446 XBT_PUBLIC(int) simcall_sem_would_block(smx_sem_t sem);
447 XBT_PUBLIC(void) simcall_sem_block_onto(smx_sem_t sem);
448 XBT_PUBLIC(void) simcall_sem_acquire(smx_sem_t sem);
449 XBT_PUBLIC(void) simcall_sem_acquire_timeout(smx_sem_t sem,
450                                            double max_duration);
451 XBT_PUBLIC(unsigned int) simcall_sem_acquire_any(xbt_dynar_t sems);
452 XBT_PUBLIC(int) simcall_sem_get_capacity(smx_sem_t sem);
453
454 XBT_PUBLIC(double) simcall_file_read(void* ptr, size_t size, size_t nmemb, smx_file_t stream);
455 XBT_PUBLIC(size_t) simcall_file_write(const void* ptr, size_t size, size_t nmemb, smx_file_t stream);
456 XBT_PUBLIC(smx_file_t) simcall_file_open(const char* storage, const char* path, const char* mode);
457 XBT_PUBLIC(int) simcall_file_close(smx_file_t fp);
458 XBT_PUBLIC(int) simcall_file_stat(smx_file_t fd, s_file_stat_t *buf);
459 XBT_PUBLIC(int) simcall_file_unlink(smx_file_t fd);
460 XBT_PUBLIC(xbt_dict_t) simcall_file_ls(const char* mount, const char* path);
461
462 /************************** AS router   **********************************/
463 XBT_PUBLIC(xbt_dict_t) SIMIX_asr_get_properties(const char *name);
464 /************************** AS router simcalls ***************************/
465 XBT_PUBLIC(xbt_dict_t) simcall_asr_get_properties(const char *name);
466
467 SG_END_DECL()
468 #endif                          /* _SIMIX_SIMIX_H */