X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e8b225db86e2cdcc338b951e4da8d2d46707778b..8182da70a35e7ebdae9c48c02cedeec4e95635a9:/src/simix/smx_io.c diff --git a/src/simix/smx_io.c b/src/simix/smx_io.c index c00ac6fd78..3200ad1352 100644 --- a/src/simix/smx_io.c +++ b/src/simix/smx_io.c @@ -187,14 +187,13 @@ smx_action_t SIMIX_file_close(smx_process_t process, smx_file_t fd, smx_host_t h //SIMIX FILE UNLINK -int SIMIX_pre_file_unlink(smx_simcall_t simcall, smx_file_t fd) +int SIMIX_pre_file_unlink(smx_simcall_t simcall, smx_file_t fd, smx_host_t host) { - return SIMIX_file_unlink(simcall->issuer, fd); + return SIMIX_file_unlink(simcall->issuer, fd, host); } -int SIMIX_file_unlink(smx_process_t process, smx_file_t fd) +int SIMIX_file_unlink(smx_process_t process, smx_file_t fd, smx_host_t host) { - smx_host_t host = process->smx_host; /* check if the host is active */ if (surf_resource_get_state(surf_workstation_resource_priv(host)) != SURF_RESOURCE_ON) { THROWF(host_error, 0, "Host %s failed, you cannot call this function",