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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user