Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove bogus inline declarations in private interface.
[simgrid.git] / src / simix / smx_smurf_private.h
index da45db6..0a91461 100644 (file)
@@ -511,7 +511,7 @@ typedef struct s_smx_simcall {
       void *ptr;
       size_t size;
       size_t nmemb;
-      smx_file_t* stream;
+      smx_file_t stream;
       size_t result;
     } file_read;
 
@@ -519,9 +519,28 @@ typedef struct s_smx_simcall {
       const void *ptr;
       size_t size;
       size_t nmemb;
-      smx_file_t* stream;
+      smx_file_t stream;
       size_t result;
     } file_write;
+
+    struct {
+      const char* path;
+      const char* mode;
+      smx_file_t result;
+    } file_open;
+
+    struct {
+      smx_file_t fp;
+      int result;
+    } file_close;
+
+    struct {
+      int fd;
+      //Next should be struct stat* buf
+      void* buf;
+      int result;
+    } file_stat;
+
   };
 } s_smx_simcall_t, *smx_simcall_t;
 
@@ -531,7 +550,7 @@ void SIMIX_simcall_push(smx_process_t self);
 void SIMIX_simcall_answer(smx_simcall_t);
 void SIMIX_simcall_pre(smx_simcall_t, int);
 void SIMIX_simcall_post(smx_action_t);
-XBT_INLINE smx_simcall_t SIMIX_simcall_mine(void);
+smx_simcall_t SIMIX_simcall_mine(void);
 const char *SIMIX_simcall_name(e_smx_simcall_t kind);
 
 #endif