A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "got a "might be clobbered by ‘longjmp’ or ‘vfork’" error when compiled"
[simgrid.git]
/
src
/
simix
/
smx_smurf_private.h
diff --git
a/src/simix/smx_smurf_private.h
b/src/simix/smx_smurf_private.h
index
b8ab301
..
a0888c1
100644
(file)
--- a/
src/simix/smx_smurf_private.h
+++ b/
src/simix/smx_smurf_private.h
@@
-84,7
+84,12
@@
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_WOULD_BLOCK),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_ACQUIRE),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_ACQUIRE_TIMEOUT),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_GET_CAPACITY),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_ACQUIRE),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_ACQUIRE_TIMEOUT),\
SIMCALL_ENUM_ELEMENT(SIMCALL_SEM_GET_CAPACITY),\
-SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_READ)
+SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_READ),\
+SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_WRITE),\
+SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_OPEN),\
+SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_CLOSE),\
+SIMCALL_ENUM_ELEMENT(SIMCALL_FILE_STAT)
+
/* SIMCALL_COMM_IS_LATENCY_BOUNDED and SIMCALL_SET_CATEGORY make things complicated
* because they are not always present */
/* SIMCALL_COMM_IS_LATENCY_BOUNDED and SIMCALL_SET_CATEGORY make things complicated
* because they are not always present */
@@
-503,8
+508,43
@@
typedef struct s_smx_simcall {
} sem_get_capacity;
struct {
} sem_get_capacity;
struct {
- char* name;;
+ const char* storage;
+ void *ptr;
+ size_t size;
+ size_t nmemb;
+ smx_file_t stream;
+ size_t result;
} file_read;
} file_read;
+
+ struct {
+ const char* storage;
+ const void *ptr;
+ size_t size;
+ size_t nmemb;
+ smx_file_t stream;
+ size_t result;
+ } file_write;
+
+ struct {
+ const char* storage;
+ const char* path;
+ const char* mode;
+ smx_file_t result;
+ } file_open;
+
+ struct {
+ const char* storage;
+ smx_file_t fp;
+ int result;
+ } file_close;
+
+ struct {
+ const char* storage;
+ smx_file_t fd;
+ s_file_stat_t buf;
+ int result;
+ } file_stat;
+
};
} s_smx_simcall_t, *smx_simcall_t;
};
} s_smx_simcall_t, *smx_simcall_t;
@@
-514,7
+554,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);
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
const char *SIMIX_simcall_name(e_smx_simcall_t kind);
#endif