- return SIMIX_file_unlink(simcall->issuer, fd);
-}
-
-int SIMIX_file_unlink(smx_process_t process, smx_file_t fd)
-{
- 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",
- sg_host_name(host));
- }
-
- if (surf_workstation_unlink(host, fd->surf_file)){
- xbt_free(fd);
- return 1;
- } else
- return 0;
-}
-
-//SIMIX FILE LS
-void SIMIX_pre_file_ls(smx_simcall_t simcall,
- const char* mount, const char* path)
-{
- smx_action_t action = SIMIX_file_ls(simcall->issuer, mount, path);
- xbt_fifo_push(action->simcalls, simcall);
- simcall->issuer->waiting_action = action;
-}
-smx_action_t SIMIX_file_ls(smx_process_t process, const char* mount, const char *path)
-{
- smx_action_t action;
- smx_host_t host = process->smx_host;