1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Add an OS method for making copies of file descriptors. This fixes the

crash tests. (CVS 2786)

FossilOrigin-Name: 57a674fc71512f11393b8eb595961ec9465ba4e1
This commit is contained in:
drh
2005-11-26 03:43:23 +00:00
parent 9c06c95309
commit 18839217da
7 changed files with 39 additions and 13 deletions

View File

@@ -1350,6 +1350,12 @@ static char *unixFullPathname(const char *zRelative){
return zFull;
}
/*
** Make a copy of an OsFile object.
*/
static void unixCopyOsFile(OsFile *pDest, OsFile *pSrc){
*pDest = *pSrc;
}
/*
** This is the structure that defines all of the I/O routines.
@@ -1375,6 +1381,7 @@ struct sqlite3IoVtbl sqlite3Io = {
unixLock,
unixUnlock,
unixCheckReservedLock,
unixCopyOsFile,
};