Lines Matching refs:lastErrno

270   DWORD lastErrno;        /* The Windows errno from the last I/O error */  member
1265 DWORD lastErrno = osGetLastError(); in sqlite3_win32_compact_heap() local
1266 if( lastErrno==NO_ERROR ){ in sqlite3_win32_compact_heap()
1994 static int winGetLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){ in winGetLastErrorMsg() argument
2008 lastErrno, in winGetLastErrorMsg()
2019 lastErrno, in winGetLastErrorMsg()
2043 lastErrno, in winGetLastErrorMsg()
2059 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%lx (%lu)", lastErrno, lastErrno); in winGetLastErrorMsg()
2087 DWORD lastErrno, /* Win32 last error */ in winLogErrorAtLine() argument
2096 winGetLastErrorMsg(lastErrno, sizeof(zMsg), zMsg); in winLogErrorAtLine()
2103 iLine, lastErrno, zFunc, zPath, zMsg in winLogErrorAtLine()
2254 DWORD lastErrno; in winceCreateLock() local
2277 pFile->lastErrno = osGetLastError(); in winceCreateLock()
2279 return winLogError(SQLITE_IOERR, pFile->lastErrno, in winceCreateLock()
2297 lastErrno = osGetLastError(); in winceCreateLock()
2298 if (lastErrno == ERROR_ALREADY_EXISTS){ in winceCreateLock()
2310 pFile->lastErrno = osGetLastError(); in winceCreateLock()
2311 winLogError(SQLITE_IOERR, pFile->lastErrno, in winceCreateLock()
2322 pFile->lastErrno = lastErrno; in winceCreateLock()
2323 winLogError(SQLITE_IOERR, pFile->lastErrno, in winceCreateLock()
2596 DWORD lastErrno; /* Value returned by GetLastError() */ in winSeekFile() local
2613 && ((lastErrno = osGetLastError())!=NO_ERROR)) ){ in winSeekFile()
2614 pFile->lastErrno = lastErrno; in winSeekFile()
2615 winLogError(SQLITE_IOERR_SEEK, pFile->lastErrno, in winSeekFile()
2635 pFile->lastErrno = osGetLastError(); in winSeekFile()
2636 winLogError(SQLITE_IOERR_SEEK, pFile->lastErrno, in winSeekFile()
2774 DWORD lastErrno; local
2775 if( winRetryIoerr(&nRetry, &lastErrno) ) continue;
2776 pFile->lastErrno = lastErrno;
2779 return winLogError(SQLITE_IOERR_READ, pFile->lastErrno,
2850 DWORD lastErrno = NO_ERROR; /* Value returned by GetLastError() */ local
2864 if( winRetryIoerr(&nRetry, &lastErrno) ) continue;
2869 lastErrno = osGetLastError();
2881 pFile->lastErrno = lastErrno;
2887 if( ( pFile->lastErrno==ERROR_HANDLE_DISK_FULL )
2888 || ( pFile->lastErrno==ERROR_DISK_FULL )){
2891 return winLogError(SQLITE_FULL, pFile->lastErrno,
2896 return winLogError(SQLITE_IOERR_WRITE, pFile->lastErrno,
2912 DWORD lastErrno; local
2962 rc = winLogError(SQLITE_IOERR_TRUNCATE, pFile->lastErrno,
2965 ((lastErrno = osGetLastError())!=ERROR_USER_MAPPED_FILE) ){
2966 pFile->lastErrno = lastErrno;
2967 rc = winLogError(SQLITE_IOERR_TRUNCATE, pFile->lastErrno,
3055 pFile->lastErrno = osGetLastError();
3059 return winLogError(SQLITE_IOERR_MMAP, pFile->lastErrno,
3071 pFile->lastErrno = osGetLastError();
3074 return winLogError(SQLITE_IOERR_FSYNC, pFile->lastErrno,
3099 pFile->lastErrno = osGetLastError();
3100 rc = winLogError(SQLITE_IOERR_FSTAT, pFile->lastErrno,
3108 DWORD lastErrno; local
3113 && ((lastErrno = osGetLastError())!=NO_ERROR) ){
3114 pFile->lastErrno = lastErrno;
3115 rc = winLogError(SQLITE_IOERR_FSTAT, pFile->lastErrno,
3186 pFile->lastErrno = osGetLastError();
3198 DWORD lastErrno; local
3208 if( res==0 && ((lastErrno = osGetLastError())!=ERROR_NOT_LOCKED) ){
3209 pFile->lastErrno = lastErrno;
3210 winLogError(SQLITE_IOERR_UNLOCK, pFile->lastErrno,
3249 DWORD lastErrno = NO_ERROR; local
3293 lastErrno = osGetLastError();
3296 if( lastErrno==ERROR_INVALID_HANDLE ){
3297 pFile->lastErrno = lastErrno;
3307 lastErrno = osGetLastError();
3319 lastErrno = osGetLastError();
3331 lastErrno = osGetLastError();
3352 lastErrno = osGetLastError();
3370 pFile->lastErrno = lastErrno;
3528 *(int*)pArg = (int)pFile->lastErrno;
3740 DWORD lastErrno; /* The Windows errno from the last I/O error */ member
3820 pFile->lastErrno = osGetLastError();
3826 "winLockFile", pFile->lastErrno, sqlite3ErrName(rc)));
4328 pShmNode->lastErrno = osGetLastError();
4329 rc = winLogError(SQLITE_IOERR_SHMMAP, pShmNode->lastErrno,
4374 pFile->lastErrno = osGetLastError();
4378 return winLogError(SQLITE_IOERR_MMAP, pFile->lastErrno,
4386 pFile->lastErrno = osGetLastError();
4389 return winLogError(SQLITE_IOERR_MMAP, pFile->lastErrno,
4465 pFd->lastErrno = osGetLastError();
4466 rc = winLogError(SQLITE_IOERR_MMAP, pFd->lastErrno,
4483 pFd->lastErrno = osGetLastError();
4484 rc = winLogError(SQLITE_IOERR_MMAP, pFd->lastErrno,
4981 DWORD lastErrno; local
4989 &sAttrData)) && winRetryIoerr(&cnt, &lastErrno) ){}
5021 DWORD lastErrno = 0; local
5204 }while( winRetryIoerr(&cnt, &lastErrno) );
5221 }while( winRetryIoerr(&cnt, &lastErrno) );
5241 }while( winRetryIoerr(&cnt, &lastErrno) );
5258 pFile->lastErrno = lastErrno;
5259 winLogError(SQLITE_CANTOPEN, pFile->lastErrno, "winOpen", zUtf8Name);
5311 pFile->lastErrno = NO_ERROR;
5344 DWORD lastErrno = 0; local
5366 lastErrno = osGetLastError();
5367 if( lastErrno==ERROR_FILE_NOT_FOUND
5368 || lastErrno==ERROR_PATH_NOT_FOUND ){
5379 lastErrno = osGetLastError();
5380 if( lastErrno==ERROR_FILE_NOT_FOUND
5381 || lastErrno==ERROR_PATH_NOT_FOUND ){
5396 if ( !winRetryIoerr(&cnt, &lastErrno) ){
5407 lastErrno = osGetLastError();
5408 if( lastErrno==ERROR_FILE_NOT_FOUND
5409 || lastErrno==ERROR_PATH_NOT_FOUND ){
5424 if ( !winRetryIoerr(&cnt, &lastErrno) ){
5432 rc = winLogError(SQLITE_IOERR_DELETE, lastErrno, "winDelete", zFilename);
5452 DWORD lastErrno = 0; local
5471 &sAttrData)) && winRetryIoerr(&cnt, &lastErrno) ){}
5485 if( lastErrno!=ERROR_FILE_NOT_FOUND && lastErrno!=ERROR_PATH_NOT_FOUND ){
5487 return winLogError(SQLITE_IOERR_ACCESS, lastErrno, "winAccess",