Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar and simplify simcalls (before killing them)
[simgrid.git] / src / simix / smx_io_private.h
1 /* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMIX_IO_PRIVATE_H
7 #define SIMIX_IO_PRIVATE_H
8
9 #include <xbt/base.h>
10
11 #include "simgrid/simix.h"
12 #include "popping_private.h"
13
14 XBT_PRIVATE smx_activity_t SIMIX_file_read(smx_file_t fd, sg_size_t size, sg_host_t host);
15 XBT_PRIVATE smx_activity_t SIMIX_file_write(smx_file_t fd, sg_size_t size, sg_host_t host);
16 XBT_PRIVATE smx_activity_t SIMIX_file_open(const char* mount, const char* path, sg_storage_t st);
17 XBT_PRIVATE smx_activity_t SIMIX_file_close(smx_file_t fd, sg_host_t host);
18 XBT_PRIVATE int SIMIX_file_unlink(smx_file_t fd, sg_host_t host);
19 XBT_PRIVATE sg_size_t SIMIX_file_get_size(smx_file_t fd);
20 XBT_PRIVATE sg_size_t SIMIX_file_tell(smx_file_t fd);
21 XBT_PRIVATE int SIMIX_file_seek(smx_file_t fd, sg_offset_t offset, int origin);
22 XBT_PRIVATE int SIMIX_file_move(smx_actor_t process, smx_file_t fd, const char* fullpath);
23
24 XBT_PRIVATE void SIMIX_io_destroy(smx_activity_t synchro);
25 XBT_PRIVATE void SIMIX_io_finish(smx_activity_t synchro);
26
27 #endif