mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
Add shims for mongoose file operations
PUBLISHED_FROM=b5b12cdf4273f21dbcdac9bfb6a06063152914c9
This commit is contained in:
1 parent
aed6d05d8c
commit
920e8d9145
6 files changed
+55
-5
No files matched your search
+15
@@ -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
|
||||
|
||||
Reference in new issue
Block a user