1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef _SIMIX_IO_PRIVATE_H
8 #define _SIMIX_IO_PRIVATE_H
10 #include "simgrid/simix.h"
11 #include "smx_smurf_private.h"
13 void SIMIX_pre_file_read(smx_simcall_t simcall);
14 void SIMIX_pre_file_write(smx_simcall_t simcall);
15 void SIMIX_pre_file_open(smx_simcall_t simcall);
16 void SIMIX_pre_file_close(smx_simcall_t simcall);
17 void SIMIX_pre_file_stat(smx_simcall_t simcall);
18 void SIMIX_pre_file_unlink(smx_simcall_t simcall);
20 smx_action_t SIMIX_file_read(smx_process_t process, void* ptr, size_t size, size_t nmemb, smx_file_t stream);
21 smx_action_t SIMIX_file_write(smx_process_t process, const void* ptr, size_t size, size_t nmemb, smx_file_t stream);
22 smx_action_t SIMIX_file_open(smx_process_t process, const char* storage, const char* path, const char* mode);
23 smx_action_t SIMIX_file_close(smx_process_t process, smx_file_t fp);
24 smx_action_t SIMIX_file_stat(smx_process_t process, smx_file_t fd, s_file_stat_t buf);
25 smx_action_t SIMIX_file_unlink(smx_process_t process, smx_file_t fd);
27 void SIMIX_post_io(smx_action_t action);
28 void SIMIX_io_destroy(smx_action_t action);
29 void SIMIX_io_finish(smx_action_t action);