diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-06-06 11:11:25 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-06-06 11:11:25 +0000 |
commit | 17b90b5316d385494415d2f4826fafda772e82b5 (patch) | |
tree | 50b7f9967da6bf20afa154f76cccc97e7e3c9468 /src/test_devsym.c | |
parent | 4b5255ac3140226c4bf9dfdf8eb3c7515a40cb32 (diff) | |
download | sqlite-17b90b5316d385494415d2f4826fafda772e82b5.tar.gz sqlite-17b90b5316d385494415d2f4826fafda772e82b5.zip |
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190)
FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
Diffstat (limited to 'src/test_devsym.c')
-rw-r--r-- | src/test_devsym.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/test_devsym.c b/src/test_devsym.c index b68994a15..0314804cd 100644 --- a/src/test_devsym.c +++ b/src/test_devsym.c @@ -14,7 +14,7 @@ ** different device types (by overriding the return values of the ** xDeviceCharacteristics() and xSectorSize() methods). ** -** $Id: test_devsym.c,v 1.6 2008/06/05 11:39:11 danielk1977 Exp $ +** $Id: test_devsym.c,v 1.7 2008/06/06 11:11:26 danielk1977 Exp $ */ #if SQLITE_TEST /* This file is used for testing only */ @@ -59,7 +59,6 @@ static int devsymDeviceCharacteristics(sqlite3_file*); static int devsymOpen(sqlite3_vfs*, const char *, sqlite3_file*, int , int *); static int devsymDelete(sqlite3_vfs*, const char *zName, int syncDir); static int devsymAccess(sqlite3_vfs*, const char *zName, int flags, int *); -static int devsymGetTempName(sqlite3_vfs*, int nOut, char *zOut); static int devsymFullPathname(sqlite3_vfs*, const char *zName, int, char *zOut); #ifndef SQLITE_OMIT_LOAD_EXTENSION static void *devsymDlOpen(sqlite3_vfs*, const char *zFilename); @@ -81,7 +80,6 @@ static sqlite3_vfs devsym_vfs = { devsymOpen, /* xOpen */ devsymDelete, /* xDelete */ devsymAccess, /* xAccess */ - devsymGetTempName, /* xGetTempName */ devsymFullPathname, /* xFullPathname */ #ifndef SQLITE_OMIT_LOAD_EXTENSION devsymDlOpen, /* xDlOpen */ @@ -265,15 +263,6 @@ static int devsymAccess( } /* -** Populate buffer zBufOut with a pathname suitable for use as a -** temporary file. zBufOut is guaranteed to point to a buffer of -** at least (DEVSYM_MAX_PATHNAME+1) bytes. -*/ -static int devsymGetTempName(sqlite3_vfs *pVfs, int nOut, char *zBufOut){ - return sqlite3OsGetTempname(g.pVfs, nOut, zBufOut); -} - -/* ** Populate buffer zOut with the full canonical pathname corresponding ** to the pathname in zPath. zOut is guaranteed to point to a buffer ** of at least (DEVSYM_MAX_PATHNAME+1) bytes. |