1 /* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "msg_private.h"
11 size_t MSG_file_read(void* ptr, size_t size, size_t nmemb, m_file_t* stream)
13 return simcall_file_read(ptr, size, nmemb, (smx_file_t*)stream);
16 size_t MSG_file_write(const void* ptr, size_t size, size_t nmemb, m_file_t* stream)
18 return simcall_file_write(ptr, size, nmemb, (smx_file_t*)stream);
21 m_file_t* MSG_file_open(const char* path, const char* mode)
23 return (m_file_t*) simcall_file_open(path, mode);
26 int MSG_file_close(m_file_t* fp)
28 return simcall_file_close((smx_file_t*)fp);
31 int MSG_file_stat(int fd, void* buf)
33 return simcall_file_stat(fd, buf);