Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Better temp file naming under windows (CVS 1718) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
126fbcb7a8f52a0cc01c8346150a187d |
User & Date: | drh 2001-03-20 12:57:57.000 |
Context
2001-03-20
| ||
13:00 | Version 1.0.26 (CVS 477) (check-in: 99f9ea412f user: drh tags: trunk) | |
12:57 | Better temp file naming under windows (CVS 1718) (check-in: 126fbcb7a8 user: drh tags: trunk) | |
12:55 | Open windows files in binary mode. (CVS 1717) (check-in: 3adf884bcf user: drh tags: trunk) | |
Changes
Changes to src/dbbemem.c.
︙ | ︙ | |||
24 25 26 27 28 29 30 | ** This file contains code to implement the database backend (DBBE) ** for sqlite. The database backend is the interface between ** sqlite and the code that does the actually reading and writing ** of information to the disk. ** ** This file uses an in-memory hash table as the database backend. ** | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | ** This file contains code to implement the database backend (DBBE) ** for sqlite. The database backend is the interface between ** sqlite and the code that does the actually reading and writing ** of information to the disk. ** ** This file uses an in-memory hash table as the database backend. ** ** $Id: dbbemem.c,v 1.10 2001/03/20 12:57:57 drh Exp $ */ #include "sqliteInt.h" #include <sys/stat.h> #include <unistd.h> #include <ctype.h> #include <time.h> |
︙ | ︙ | |||
721 722 723 724 725 726 727 | ** directory. */ static int sqliteMemOpenTempFile(Dbbe *pDbbe, FILE **ppFile){ #if OS_UNIX const char *zTemps[] = { "/usr/tmp", "/var/tmp", "/tmp", "/temp", 0}; #endif #if OS_WIN | | | 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 | ** directory. */ static int sqliteMemOpenTempFile(Dbbe *pDbbe, FILE **ppFile){ #if OS_UNIX const char *zTemps[] = { "/usr/tmp", "/var/tmp", "/tmp", "/temp", 0}; #endif #if OS_WIN const char *zTemps[] = { "/temp", "c:/temp", "c:", "d:", "e:", 0}; #endif const char *zDir; int i; struct stat statbuf; for(i=0; zTemps[i]; i++){ zDir = zTemps[i]; if( stat(zDir, &statbuf)==0 && S_ISDIR(statbuf.st_mode) |
︙ | ︙ |