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
Implement file stat for storage model.
[simgrid.git]
/
src
/
simix
/
smx_user.c
diff --git
a/src/simix/smx_user.c
b/src/simix/smx_user.c
index 9d90214e1d2f59656f15e79bcacfdedfecc85219..1f5f4b4f1a7021e80cd1eea22959f580a87e4634 100644
(file)
--- a/
src/simix/smx_user.c
+++ b/
src/simix/smx_user.c
@@
-1232,16
+1232,17
@@
int simcall_file_close(const char* storage, smx_file_t fp)
return simcall->file_close.result;
}
return simcall->file_close.result;
}
-int simcall_file_stat(const char* storage,
int fd, void*
buf)
+int simcall_file_stat(const char* storage,
smx_file_t fd, s_file_stat_t *
buf)
{
smx_simcall_t simcall = SIMIX_simcall_mine();
{
smx_simcall_t simcall = SIMIX_simcall_mine();
-
simcall->call = SIMCALL_FILE_STAT;
simcall->file_stat.storage = storage;
simcall->file_stat.fd = fd;
simcall->call = SIMCALL_FILE_STAT;
simcall->file_stat.storage = storage;
simcall->file_stat.fd = fd;
- simcall->file_stat.buf = buf;
+
SIMIX_simcall_push(simcall->issuer);
SIMIX_simcall_push(simcall->issuer);
+ *buf = simcall->file_stat.buf;
+
return simcall->file_stat.result;
}
return simcall->file_stat.result;
}