Add shims for mongoose file operations

PUBLISHED_FROM=b5b12cdf4273f21dbcdac9bfb6a06063152914c9
This commit is contained in:
Alexander Alashkin authored and Cesanta Bot committed 2017-03-01 10:06:47 +00:00
1 parent aed6d05d8c
commit 920e8d9145
6 files changed
+55 -5

No files matched your search

+15
View File
@@ -3898,6 +3898,21 @@ FILE *mg_fopen(const char *path, const char *mode);
* Return value is the same as for the `open()` syscall.
*/
int mg_open(const char *path, int flag, int mode);
/*
* Reads data from the given file stream.
*
* Return value is a number of bytes readen.
*/
size_t mg_fread(void *ptr, size_t size, size_t count, FILE *f);
/*
* Writes data to the given file stream.
*
* Return value is a number of bytes wtitten.
*/
size_t mg_fwrite(const void *ptr, size_t size, size_t count, FILE *f);
#endif /* MG_ENABLE_FILESYSTEM */
#if MG_ENABLE_THREADS