Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Use _stati64() rather than stat() on windows, in order to support repositories larger than 2GB. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
293238031fb092cc8bd0c47d5b3e52d1 |
| User & Date: | drh 2010-09-18 21:48:47.000 |
Context
|
2010-09-18
| ||
| 22:22 | Enable large-file support for stat() on linux. Fix the "stat" webpage to handle repositories larger than 2GB. Ticket [b1934313bcfb3a90d4027b] check-in: 31fdc347ac user: drh tags: trunk | |
| 21:48 | Use _stati64() rather than stat() on windows, in order to support repositories larger than 2GB. check-in: 293238031f user: drh tags: trunk | |
| 20:08 | Enhance the test-canonical-name command to provide additional file measurement diagnostics. check-in: 7fbaee790a user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
21 22 23 24 25 26 27 28 | #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "file.h" /* ** The file status information from the most recent stat() call. */ | > > > > > > > | > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "file.h" /* ** The file status information from the most recent stat() call. ** ** Use _stati64 rather than stat on windows, in order to handle files ** larger than 2GB. */ #if defined(_WIN32) && defined(__MSVCRT__) static struct _stati64 fileStat; # define stat _stati64 #else static struct stat fileStat; #endif static int fileStatValid = 0; /* ** Fill in the fileStat variable for the file named zFilename. ** If zFilename==0, then use the previous value of fileStat if ** there is a previous value. ** |
| ︙ | ︙ |