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
Merge branch 'hypervisor' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into hypervisor
[simgrid.git]
/
examples
/
msg
/
io
/
file_unlink.c
diff --git
a/examples/msg/io/file_unlink.c
b/examples/msg/io/file_unlink.c
index
e4ddfbf
..
30c7c17
100644
(file)
--- a/
examples/msg/io/file_unlink.c
+++ b/
examples/msg/io/file_unlink.c
@@
-36,7
+36,7
@@
int host(int argc, char *argv[])
// First open
XBT_INFO("\tOpen file '%s'",FILENAME1);
// First open
XBT_INFO("\tOpen file '%s'",FILENAME1);
- file = MSG_file_open(mount,FILENAME1
,"rw"
);
+ file = MSG_file_open(mount,FILENAME1);
// Unlink the file
XBT_INFO("\tUnlink file '%s'",file->name);
// Unlink the file
XBT_INFO("\tUnlink file '%s'",file->name);
@@
-44,10
+44,10
@@
int host(int argc, char *argv[])
// Re Open the file wich is in fact created
XBT_INFO("\tOpen file '%s'",FILENAME1);
// Re Open the file wich is in fact created
XBT_INFO("\tOpen file '%s'",FILENAME1);
- file = MSG_file_open(mount,FILENAME1
,"rw"
);
+ file = MSG_file_open(mount,FILENAME1);
// Write into the new file
// Write into the new file
- write = MSG_file_write(ptr,100000,
sizeof(char*),
file); // Write for 100Ko
+ write = MSG_file_write(ptr,100000,file); // Write for 100Ko
XBT_INFO("\tHave written %zu on %s",write,file->name);
// Close the file
XBT_INFO("\tHave written %zu on %s",write,file->name);
// Close the file