* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/kernel/activity/SynchroIo.hpp"
-#include "src/surf/surf_interface.hpp"
#include "src/simix/smx_private.h"
+#include "src/surf/FileImpl.hpp"
+#include "src/surf/StorageImpl.hpp"
+#include "src/surf/surf_interface.hpp"
void simgrid::kernel::activity::IoImpl::suspend()
{
{
for (smx_simcall_t simcall : simcalls) {
switch (simcall->call) {
- case SIMCALL_FILE_OPEN: {
- smx_file_t tmp = xbt_new(s_smx_file_t,1);
- tmp->surf_file = surf_storage_action_get_file(surf_io);
- simcall_file_open__set__result(simcall, tmp);
- break;
- }
- case SIMCALL_FILE_CLOSE:
- xbt_free(simcall_file_close__get__fd(simcall));
- simcall_file_close__set__result(simcall, 0);
- break;
case SIMCALL_FILE_WRITE:
simcall_file_write__set__result(simcall, surf_io->getCost());
break;