Lines Matching refs:h

266   HANDLE h;               /* Handle for accessing the file */  member
2231 #define HANDLE_TO_WINFILE(a) (winFile*)&((char*)a)[-(int)offsetof(winFile,h)]
2236 static void winceMutexAcquire(HANDLE h){ in winceMutexAcquire() argument
2239 dwErr = osWaitForSingleObject(h, INFINITE); in winceMutexAcquire()
2245 #define winceMutexRelease(h) ReleaseMutex(h) argument
2598 OSTRACE(("SEEK file=%p, offset=%lld\n", pFile->h, iOffset)); in winSeekFile()
2610 dwRet = osSetFilePointer(pFile->h, lowerBits, &upperBits, FILE_BEGIN); in winSeekFile()
2617 OSTRACE(("SEEK file=%p, rc=SQLITE_IOERR_SEEK\n", pFile->h)); in winSeekFile()
2621 OSTRACE(("SEEK file=%p, rc=SQLITE_OK\n", pFile->h)); in winSeekFile()
2632 bRet = osSetFilePointerEx(pFile->h, x, 0, FILE_BEGIN); in winSeekFile()
2638 OSTRACE(("SEEK file=%p, rc=SQLITE_IOERR_SEEK\n", pFile->h)); in winSeekFile()
2642 OSTRACE(("SEEK file=%p, rc=SQLITE_OK\n", pFile->h)); in winSeekFile()
2672 assert( pFile->h!=NULL && pFile->h!=INVALID_HANDLE_VALUE ); in winClose()
2674 osGetCurrentProcessId(), pFile, pFile->h)); in winClose()
2681 rc = osCloseHandle(pFile->h); in winClose()
2705 pFile->h = NULL; in winClose()
2709 osGetCurrentProcessId(), pFile, pFile->h, rc ? "ok" : "failed")); in winClose()
2739 pFile->h, pBuf, amt, offset, pFile->locktype));
2748 osGetCurrentProcessId(), pFile, pFile->h));
2763 osGetCurrentProcessId(), pFile, pFile->h));
2766 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
2771 while( !osReadFile(pFile->h, pBuf, amt, &nRead, &overlapped) &&
2778 osGetCurrentProcessId(), pFile, pFile->h));
2787 osGetCurrentProcessId(), pFile, pFile->h));
2792 osGetCurrentProcessId(), pFile, pFile->h));
2817 pFile->h, pBuf, amt, offset, pFile->locktype));
2826 osGetCurrentProcessId(), pFile, pFile->h));
2860 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, 0) ){
2862 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, &overlapped) ){
2890 osGetCurrentProcessId(), pFile, pFile->h));
2895 osGetCurrentProcessId(), pFile, pFile->h));
2902 osGetCurrentProcessId(), pFile, pFile->h));
2940 osGetCurrentProcessId(), pFile, pFile->h, nByte, pFile->locktype));
2964 }else if( 0==osSetEndOfFile(pFile->h) &&
2982 osGetCurrentProcessId(), pFile, pFile->h, sqlite3ErrName(rc)));
3028 osGetCurrentProcessId(), pFile, pFile->h, flags,
3045 osGetCurrentProcessId(), pFile, pFile->h));
3064 rc = osFlushFileBuffers(pFile->h);
3068 osGetCurrentProcessId(), pFile, pFile->h));
3073 osGetCurrentProcessId(), pFile, pFile->h));
3090 OSTRACE(("SIZE file=%p, pSize=%p\n", pFile->h, pSize));
3095 if( osGetFileInformationByHandleEx(pFile->h, FileStandardInfo,
3110 lowerBits = osGetFileSize(pFile->h, &upperBits);
3121 pFile->h, pSize, *pSize, sqlite3ErrName(rc)));
3163 OSTRACE(("READ-LOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
3170 res = winceLockFile(&pFile->h, SHARED_FIRST, 0, 1, 0);
3172 res = winLockFile(&pFile->h, SQLITE_LOCKFILEEX_FLAGS, SHARED_FIRST, 0,
3181 res = winLockFile(&pFile->h, SQLITE_LOCKFILE_FLAGS,
3189 OSTRACE(("READ-LOCK file=%p, result=%d\n", pFile->h, res));
3199 OSTRACE(("READ-UNLOCK file=%p, lock=%d\n", pFile->h, pFile->locktype));
3201 res = winUnlockFile(&pFile->h, SHARED_FIRST, 0, SHARED_SIZE, 0);
3205 res = winUnlockFile(&pFile->h, SHARED_FIRST+pFile->sharedLockByte, 0, 1, 0);
3213 OSTRACE(("READ-UNLOCK file=%p, result=%d\n", pFile->h, res));
3253 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
3260 OSTRACE(("LOCK-HELD file=%p, rc=SQLITE_OK\n", pFile->h));
3285 while( cnt-->0 && (res = winLockFile(&pFile->h, SQLITE_LOCKFILE_FLAGS,
3295 pFile->h, cnt, res));
3300 pFile->h, cnt, sqlite3ErrName(rc)));
3327 res = winLockFile(&pFile->h, SQLITE_LOCKFILE_FLAGS, RESERVED_BYTE, 0, 1, 0);
3347 res = winLockFile(&pFile->h, SQLITE_LOCKFILE_FLAGS, SHARED_FIRST, 0,
3361 winUnlockFile(&pFile->h, PENDING_BYTE, 0, 1, 0);
3373 pFile->h, locktype, newLocktype));
3377 pFile->h, pFile->locktype, sqlite3ErrName(rc)));
3391 OSTRACE(("TEST-WR-LOCK file=%p, pResOut=%p\n", pFile->h, pResOut));
3396 OSTRACE(("TEST-WR-LOCK file=%p, result=%d (local)\n", pFile->h, res));
3398 res = winLockFile(&pFile->h, SQLITE_LOCKFILEEX_FLAGS,RESERVED_BYTE,0,1,0);
3400 winUnlockFile(&pFile->h, RESERVED_BYTE, 0, 1, 0);
3403 OSTRACE(("TEST-WR-LOCK file=%p, result=%d (remote)\n", pFile->h, res));
3407 pFile->h, pResOut, *pResOut));
3429 pFile->h, pFile->locktype, pFile->sharedLockByte, locktype));
3432 winUnlockFile(&pFile->h, SHARED_FIRST, 0, SHARED_SIZE, 0);
3441 winUnlockFile(&pFile->h, RESERVED_BYTE, 0, 1, 0);
3447 winUnlockFile(&pFile->h, PENDING_BYTE, 0, 1, 0);
3451 pFile->h, pFile->locktype, sqlite3ErrName(rc)));
3520 OSTRACE(("FCNTL file=%p, op=%d, pArg=%p\n", pFile->h, op, pArg));
3524 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3529 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3534 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3549 OSTRACE(("FCNTL file=%p, rc=%s\n", pFile->h, sqlite3ErrName(rc)));
3552 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3557 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3562 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3567 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3582 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3587 *phFile = pFile->h;
3588 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3594 HANDLE hOldFile = pFile->h;
3595 pFile->h = *phFile;
3598 hOldFile, pFile->h));
3608 OSTRACE(("FCNTL file=%p, rc=%s\n", pFile->h, sqlite3ErrName(rc)));
3634 OSTRACE(("FCNTL file=%p, rc=%s\n", pFile->h, sqlite3ErrName(rc)));
3639 OSTRACE(("FCNTL file=%p, rc=SQLITE_NOTFOUND\n", pFile->h));
3805 pFile->hFile.h, lockType, ofst, nByte));
3809 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
3814 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
3825 pFile->hFile.h, (lockType == WINSHM_UNLCK) ? "winUnlockFile" :
3862 if( p->hFile.h!=NULL && p->hFile.h!=INVALID_HANDLE_VALUE ){
3963 ((winFile*)(&pShmNode->hFile))->h = INVALID_HANDLE_VALUE;
4296 hMap = osCreateFileMappingFromApp(pShmNode->hFile.h,
4300 hMap = osCreateFileMappingW(pShmNode->hFile.h,
4304 hMap = osCreateFileMappingA(pShmNode->hFile.h,
4454 pFd->hMap = osCreateFileMappingFromApp(pFd->h, NULL, protect, nMap, NULL);
4456 pFd->hMap = osCreateFileMappingW(pFd->h, NULL, protect,
4460 pFd->hMap = osCreateFileMappingA(pFd->h, NULL, protect,
5020 HANDLE h; local
5090 pFile->h = INVALID_HANDLE_VALUE;
5191 h = osCreateFile2((LPCWSTR)zConverted,
5196 if( h!=INVALID_HANDLE_VALUE ) break;
5207 h = osCreateFileW((LPCWSTR)zConverted,
5213 if( h!=INVALID_HANDLE_VALUE ) break;
5227 h = osCreateFileA((LPCSTR)zConverted,
5233 if( h!=INVALID_HANDLE_VALUE ) break;
5246 OSTRACE(("OPEN file=%p, name=%s, access=%lx, rc=%s\n", h, zUtf8Name,
5247 dwDesiredAccess, (h==INVALID_HANDLE_VALUE) ? "failed" : "ok"));
5249 if( h==INVALID_HANDLE_VALUE ){
5273 "rc=%s\n", h, zUtf8Name, dwDesiredAccess, pOutFlags, pOutFlags ?
5274 *pOutFlags : 0, (h==INVALID_HANDLE_VALUE) ? "failed" : "ok"));
5284 osCloseHandle(h);
5302 pFile->h = h;
5781 HANDLE h; local
5807 h = osLoadPackagedLibrary((LPCWSTR)zConverted, 0);
5809 h = osLoadLibraryW((LPCWSTR)zConverted);
5814 h = osLoadLibraryA((char*)zConverted);
5817 OSTRACE(("DLOPEN name=%s, handle=%p\n", zFilename, (void*)h));
5819 return (void*)h;