-int SIMIX_pre_file_unlink(smx_simcall_t simcall, smx_file_t fd)
-{
- 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)