- simcall_file_read__set__result(simcall, (action->io.surf_io)->cost);
- break;
-
- case SIMCALL_FILE_STAT:
- simcall_file_stat__set__result(simcall, 0);
- dst = simcall_file_stat__get__buf(simcall);
- src = &((action->io.surf_io)->stat);
- file_stat_copy(src,dst);
- break;
-
- case SIMCALL_FILE_UNLINK:
- xbt_free(simcall_file_unlink__get__fd(simcall));
- simcall_file_unlink__set__result(simcall, 0);
- break;
-
- case SIMCALL_FILE_LS:
- xbt_dict_foreach((action->io.surf_io)->ls_dict,cursor,key, src){
- // if there is a stat we have to duplicate it
- if(src){
- dst = xbt_new0(s_file_stat_t,1);
- file_stat_copy(src, dst);
- xbt_dict_set((action->io.surf_io)->ls_dict,key,dst,free_file_stat);
- }
- }
- simcall_file_ls__set__result(simcall, (action->io.surf_io)->ls_dict);