mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
CC3200 FS refactoring and basic Mongoose example
Moved filesystem-related code out of SJS and into common. Made it possible to have one, both or no filesystems enabled. FailFS is now SimpleLinkFS, SLFS (ahem). Example just serves a "Hello, world!" index page for now. PUBLISHED_FROM=0e98ee4b8d95782c10791522c42eae5a7ba314f9
This commit is contained in:
1 parent
012f241005
commit
4f9627c612
9 files changed
+441
-3
No files matched your search
@@ -5865,7 +5865,12 @@ static void mg_http_send_file2(struct mg_connection *nc, const char *path,
|
||||
snprintf(range, sizeof(range), "Content-Range: bytes %" INT64_FMT
|
||||
"-%" INT64_FMT "/%" INT64_FMT "\r\n",
|
||||
r1, r1 + cl - 1, (int64_t) st->st_size);
|
||||
#if _FILE_OFFSET_BITS == 64 || _POSIX_C_SOURCE >= 200112L || \
|
||||
_XOPEN_SOURCE >= 600
|
||||
fseeko(pd->file.fp, r1, SEEK_SET);
|
||||
#else
|
||||
fseek(pd->file.fp, r1, SEEK_SET);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user