Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8b3be6af63fa4253bb269d7b37ab5fb48b2a8030
[simgrid.git] / src / simix / smx_io_private.h
1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef _SIMIX_IO_PRIVATE_H
8 #define _SIMIX_IO_PRIVATE_H
9
10 #include "simgrid/simix.h"
11 #include "smx_smurf_private.h"
12
13 void SIMIX_pre_file_read(smx_simcall_t simcall, size_t size, smx_file_t fd);
14 void SIMIX_pre_file_write(smx_simcall_t simcall, size_t size, smx_file_t fd);
15 void SIMIX_pre_file_open(smx_simcall_t simcall, const char* mount,
16                          const char* path);
17 void SIMIX_pre_file_close(smx_simcall_t simcall, smx_file_t fd);
18 int SIMIX_pre_file_unlink(smx_simcall_t simcall, smx_file_t fd);
19 void SIMIX_pre_file_ls(smx_simcall_t simcall,
20                        const char* mount, const char* path);
21 size_t SIMIX_pre_file_get_size(smx_simcall_t simcall, smx_file_t fd);
22 xbt_dynar_t SIMIX_pre_file_get_info(smx_simcall_t simcall, smx_file_t fd);
23
24 smx_action_t SIMIX_file_read(smx_process_t process, size_t size,
25                              smx_file_t fd);
26 smx_action_t SIMIX_file_write(smx_process_t process, size_t size, 
27                               smx_file_t fd);
28 smx_action_t SIMIX_file_open(smx_process_t process, const char* storage,
29                              const char* path);
30 smx_action_t SIMIX_file_close(smx_process_t process, smx_file_t fd);
31 int SIMIX_file_unlink(smx_process_t process, smx_file_t fd);
32 smx_action_t SIMIX_file_ls(smx_process_t process, const char *mount,
33                            const char *path);
34 size_t SIMIX_file_get_size(smx_process_t process, smx_file_t fd);
35 xbt_dynar_t SIMIX_file_get_info(smx_process_t process, smx_file_t fd);
36
37 size_t SIMIX_pre_storage_get_free_size(smx_simcall_t simcall,const char* name);
38 size_t SIMIX_storage_get_free_size(smx_process_t process,const char* name);
39
40 size_t SIMIX_pre_storage_get_used_size(smx_simcall_t simcall,const char* name);
41 size_t SIMIX_storage_get_used_size(smx_process_t process,const char* name);
42
43 void SIMIX_post_io(smx_action_t action);
44 void SIMIX_io_destroy(smx_action_t action);
45 void SIMIX_io_finish(smx_action_t action);
46
47 // pre prototypes
48
49 #endif