Lines Matching refs:id

1507 static int unixCheckReservedLock(sqlite3_file *id, int *pResOut){  in unixCheckReservedLock()  argument
1510 unixFile *pFile = (unixFile*)id; in unixCheckReservedLock()
1658 static int unixLock(sqlite3_file *id, int eFileLock){ in unixLock() argument
1699 unixFile *pFile = (unixFile*)id; in unixLock()
1908 static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock){ in posixUnlock() argument
1909 unixFile *pFile = (unixFile*)id; in posixUnlock()
2068 static int unixUnlock(sqlite3_file *id, int eFileLock){ in unixUnlock() argument
2070 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 ); in unixUnlock()
2072 return posixUnlock(id, eFileLock, 0); in unixUnlock()
2090 static int closeUnixFile(sqlite3_file *id){ in closeUnixFile() argument
2091 unixFile *pFile = (unixFile*)id; in closeUnixFile()
2125 static int unixClose(sqlite3_file *id){ in unixClose() argument
2127 unixFile *pFile = (unixFile *)id; in unixClose()
2132 unixUnlock(id, NO_LOCK); in unixClose()
2152 rc = closeUnixFile(id); in unixClose()
2194 static int nolockClose(sqlite3_file *id) { in nolockClose() argument
2195 return closeUnixFile(id); in nolockClose()
2239 static int dotlockCheckReservedLock(sqlite3_file *id, int *pResOut) { in dotlockCheckReservedLock() argument
2242 unixFile *pFile = (unixFile*)id; in dotlockCheckReservedLock()
2280 static int dotlockLock(sqlite3_file *id, int eFileLock) { in dotlockLock() argument
2281 unixFile *pFile = (unixFile*)id; in dotlockLock()
2330 static int dotlockUnlock(sqlite3_file *id, int eFileLock) { in dotlockUnlock() argument
2331 unixFile *pFile = (unixFile*)id; in dotlockUnlock()
2373 static int dotlockClose(sqlite3_file *id) { in dotlockClose() argument
2374 unixFile *pFile = (unixFile*)id; in dotlockClose()
2375 assert( id!=0 ); in dotlockClose()
2376 dotlockUnlock(id, NO_LOCK); in dotlockClose()
2378 return closeUnixFile(id); in dotlockClose()
2419 static int flockCheckReservedLock(sqlite3_file *id, int *pResOut){ in flockCheckReservedLock() argument
2422 unixFile *pFile = (unixFile*)id; in flockCheckReservedLock()
2499 static int flockLock(sqlite3_file *id, int eFileLock) { in flockLock() argument
2501 unixFile *pFile = (unixFile*)id; in flockLock()
2543 static int flockUnlock(sqlite3_file *id, int eFileLock) { in flockUnlock() argument
2544 unixFile *pFile = (unixFile*)id; in flockUnlock()
2577 static int flockClose(sqlite3_file *id) { in flockClose() argument
2578 assert( id!=0 ); in flockClose()
2579 flockUnlock(id, NO_LOCK); in flockClose()
2580 return closeUnixFile(id); in flockClose()
2606 static int semXCheckReservedLock(sqlite3_file *id, int *pResOut) { in semXCheckReservedLock() argument
2609 unixFile *pFile = (unixFile*)id; in semXCheckReservedLock()
2673 static int semXLock(sqlite3_file *id, int eFileLock) { in semXLock() argument
2674 unixFile *pFile = (unixFile*)id; in semXLock()
2706 static int semXUnlock(sqlite3_file *id, int eFileLock) { in semXUnlock() argument
2707 unixFile *pFile = (unixFile*)id; in semXUnlock()
2743 static int semXClose(sqlite3_file *id) { in semXClose() argument
2744 if( id ){ in semXClose()
2745 unixFile *pFile = (unixFile*)id; in semXClose()
2746 semXUnlock(id, NO_LOCK); in semXClose()
2752 closeUnixFile(id); in semXClose()
2849 static int afpCheckReservedLock(sqlite3_file *id, int *pResOut){ in afpCheckReservedLock() argument
2852 unixFile *pFile = (unixFile*)id; in afpCheckReservedLock()
2918 static int afpLock(sqlite3_file *id, int eFileLock){ in afpLock() argument
2920 unixFile *pFile = (unixFile*)id; in afpLock()
3100 static int afpUnlock(sqlite3_file *id, int eFileLock) { in afpUnlock() argument
3102 unixFile *pFile = (unixFile*)id; in afpUnlock()
3203 static int afpClose(sqlite3_file *id) { in afpClose() argument
3205 unixFile *pFile = (unixFile*)id; in afpClose()
3206 assert( id!=0 ); in afpClose()
3207 afpUnlock(id, NO_LOCK); in afpClose()
3225 rc = closeUnixFile(id); in afpClose()
3251 static int nfsUnlock(sqlite3_file *id, int eFileLock){ in nfsUnlock() argument
3252 return posixUnlock(id, eFileLock, 1); in nfsUnlock()
3287 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){ in seekAndRead() argument
3295 assert( id->h>2 ); in seekAndRead()
3298 got = osPread(id->h, pBuf, cnt, offset); in seekAndRead()
3301 got = osPread64(id->h, pBuf, cnt, offset); in seekAndRead()
3304 newOffset = lseek(id->h, offset, SEEK_SET); in seekAndRead()
3307 storeLastErrno((unixFile*)id, errno); in seekAndRead()
3310 got = osRead(id->h, pBuf, cnt); in seekAndRead()
3316 storeLastErrno((unixFile*)id, errno); in seekAndRead()
3327 id->h, got+prior, offset-prior, TIMER_ELAPSED)); in seekAndRead()
3337 sqlite3_file *id, in unixRead() argument
3342 unixFile *pFile = (unixFile *)id; in unixRead()
3344 assert( id ); in unixRead()
3458 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){ in seekAndWrite() argument
3459 return seekAndWriteFd(id->h, offset, pBuf, cnt, &id->lastErrno); in seekAndWrite()
3468 sqlite3_file *id, in unixWrite() argument
3473 unixFile *pFile = (unixFile*)id; in unixWrite()
3475 assert( id ); in unixWrite()
3735 static int unixSync(sqlite3_file *id, int flags){ in unixSync() argument
3737 unixFile *pFile = (unixFile*)id; in unixSync()
3785 static int unixTruncate(sqlite3_file *id, i64 nByte){ in unixTruncate() argument
3786 unixFile *pFile = (unixFile *)id; in unixTruncate()
3835 static int unixFileSize(sqlite3_file *id, i64 *pSize){ in unixFileSize() argument
3838 assert( id ); in unixFileSize()
3839 rc = osFstat(((unixFile*)id)->h, &buf); in unixFileSize()
3842 storeLastErrno((unixFile*)id, errno); in unixFileSize()
3961 static int unixFileControl(sqlite3_file *id, int op, void *pArg){ in unixFileControl() argument
3962 unixFile *pFile = (unixFile*)id; in unixFileControl()
4063 ((unixFile*)id)->dbUpdate = 0; in unixFileControl()
4070 return proxyFileControl(id,op,pArg); in unixFileControl()
4076 return unixFcntlExternalReader((unixFile*)id, (int*)pArg); in unixFileControl()
4203 static int unixSectorSize(sqlite3_file *id){ in unixSectorSize() argument
4204 unixFile *pFd = (unixFile*)id; in unixSectorSize()
4222 static int unixDeviceCharacteristics(sqlite3_file *id){ in unixDeviceCharacteristics() argument
4223 unixFile *pFd = (unixFile*)id; in unixDeviceCharacteristics()
4316 u8 id; /* Id of this connection within its unixShmNode */ member
4685 p->id = pShmNode->nextShmId++; in unixOpenSharedMemory()
5034 p->id, osGetpid(0), p->sharedMask, p->exclMask)); in unixShmLock()
7130 extern int gethostuuid(uuid_t id, const struct timespec *wait);
7757 static int proxyFileControl(sqlite3_file *id, int op, void *pArg){ in proxyFileControl() argument
7760 unixFile *pFile = (unixFile*)id; in proxyFileControl()
7775 unixFile *pFile = (unixFile*)id; in proxyFileControl()
7830 static int proxyCheckReservedLock(sqlite3_file *id, int *pResOut) { in proxyCheckReservedLock() argument
7831 unixFile *pFile = (unixFile*)id; in proxyCheckReservedLock()
7869 static int proxyLock(sqlite3_file *id, int eFileLock) { in proxyLock() argument
7870 unixFile *pFile = (unixFile*)id; in proxyLock()
7893 static int proxyUnlock(sqlite3_file *id, int eFileLock) { in proxyUnlock() argument
7894 unixFile *pFile = (unixFile*)id; in proxyUnlock()
7912 static int proxyClose(sqlite3_file *id) { in proxyClose() argument
7913 if( ALWAYS(id) ){ in proxyClose()
7914 unixFile *pFile = (unixFile*)id; in proxyClose()
7944 return pFile->pMethod->xClose(id); in proxyClose()