+
+//SIMIX FILE UNLINK
+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_workstation_model->extension.
+ workstation.get_state(host) != SURF_RESOURCE_ON) {
+ THROWF(host_error, 0, "Host %s failed, you cannot call this function",
+ sg_host_name(host));
+ }
+
+ if (surf_workstation_model->extension.workstation.unlink(host, fd->surf_file)){
+ fd->surf_file = NULL;
+ return 1;
+ } else
+ return 0;
+}
+
+//SIMIX FILE LS
+void SIMIX_pre_file_ls(smx_simcall_t simcall,
+ const char* mount, const char* path)