Lines Matching refs:unixFile
218 typedef struct unixFile unixFile; typedef
219 struct unixFile { struct
1195 int unixFileMutexHeld(unixFile *pFile){ in unixFileMutexHeld()
1199 int unixFileMutexNotheld(unixFile *pFile){ in unixFileMutexNotheld()
1287 static void robust_close(unixFile *pFile, int h, int lineno){ in robust_close()
1298 static void storeLastErrno(unixFile *pFile, int error){ in storeLastErrno()
1305 static void closePendingFds(unixFile *pFile){ in closePendingFds()
1324 static void releaseInodeInfo(unixFile *pFile){ in releaseInodeInfo()
1362 unixFile *pFile, /* Unix file with file desc used in the key */ in findInodeInfo()
1453 static int fileHasMoved(unixFile *pFile){ in fileHasMoved()
1474 static void verifyDbFile(unixFile *pFile){ in verifyDbFile()
1510 unixFile *pFile = (unixFile*)id; in unixCheckReservedLock()
1570 unixFile *pFile /* Structure holding timeout value */ in osSetPosixAdvisoryLock()
1608 static int unixFileLock(unixFile *pFile, struct flock *pLock){ in unixFileLock()
1699 unixFile *pFile = (unixFile*)id; in unixLock()
1885 static void setPendingFd(unixFile *pFile){ in setPendingFd()
1909 unixFile *pFile = (unixFile*)id; in posixUnlock()
2070 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 ); in unixUnlock()
2076 static int unixMapfile(unixFile *pFd, i64 nByte);
2077 static void unixUnmapfile(unixFile *pFd);
2091 unixFile *pFile = (unixFile*)id; in closeUnixFile()
2118 memset(pFile, 0, sizeof(unixFile)); in closeUnixFile()
2127 unixFile *pFile = (unixFile *)id; in unixClose()
2242 unixFile *pFile = (unixFile*)id; in dotlockCheckReservedLock()
2281 unixFile *pFile = (unixFile*)id; in dotlockLock()
2331 unixFile *pFile = (unixFile*)id; in dotlockUnlock()
2374 unixFile *pFile = (unixFile*)id; in dotlockClose()
2422 unixFile *pFile = (unixFile*)id; in flockCheckReservedLock()
2501 unixFile *pFile = (unixFile*)id; in flockLock()
2544 unixFile *pFile = (unixFile*)id; in flockUnlock()
2609 unixFile *pFile = (unixFile*)id; in semXCheckReservedLock()
2674 unixFile *pFile = (unixFile*)id; in semXLock()
2707 unixFile *pFile = (unixFile*)id; in semXUnlock()
2745 unixFile *pFile = (unixFile*)id; in semXClose()
2805 unixFile *pFile, /* Open file descriptor on path */ in afpSetLock()
2852 unixFile *pFile = (unixFile*)id; in afpCheckReservedLock()
2920 unixFile *pFile = (unixFile*)id; in afpLock()
3102 unixFile *pFile = (unixFile*)id; in afpUnlock()
3205 unixFile *pFile = (unixFile*)id; in afpClose()
3287 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){ in seekAndRead()
3307 storeLastErrno((unixFile*)id, errno); in seekAndRead()
3316 storeLastErrno((unixFile*)id, errno); in seekAndRead()
3342 unixFile *pFile = (unixFile *)id; in unixRead()
3458 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){ in seekAndWrite()
3473 unixFile *pFile = (unixFile*)id; in unixWrite()
3737 unixFile *pFile = (unixFile*)id; in unixSync()
3786 unixFile *pFile = (unixFile *)id; in unixTruncate()
3839 rc = osFstat(((unixFile*)id)->h, &buf); in unixFileSize()
3842 storeLastErrno((unixFile*)id, errno); in unixFileSize()
3873 static int fcntlSizeHint(unixFile *pFile, i64 nByte){ in fcntlSizeHint()
3942 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){ in unixModeBit()
3955 static int unixFcntlExternalReader(unixFile*, int*);
3962 unixFile *pFile = (unixFile*)id; in unixFileControl()
4063 ((unixFile*)id)->dbUpdate = 0; in unixFileControl()
4076 return unixFcntlExternalReader((unixFile*)id, (int*)pArg); in unixFileControl()
4096 static void setDeviceCharacteristics(unixFile *pFd){ in setDeviceCharacteristics()
4121 static void setDeviceCharacteristics(unixFile *pFile){ in setDeviceCharacteristics()
4204 unixFile *pFd = (unixFile*)id; in unixSectorSize()
4223 unixFile *pFd = (unixFile*)id; in unixDeviceCharacteristics()
4335 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){ in unixFcntlExternalReader()
4368 unixFile *pFile, /* Open connection to the WAL file */ in unixShmSystemLock()
4466 static void unixShmPurge(unixFile *pFd){ in unixShmPurge()
4500 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){ in unixLockSharedMemory()
4589 static int unixOpenSharedMemory(unixFile *pDbFd){ in unixOpenSharedMemory()
4738 unixFile *pDbFd = (unixFile*)fd; in unixShmMap()
4912 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */ in unixShmLock()
5050 || unixFileMutexNotheld((unixFile*)fd) in unixShmBarrier()
5070 unixFile *pDbFd; /* The underlying database file */ in unixShmUnmap()
5072 pDbFd = (unixFile*)fd; in unixShmUnmap()
5120 static void unixUnmapfile(unixFile *pFd){ in unixUnmapfile()
5146 unixFile *pFd, /* File descriptor object */ in unixRemapfile()
5237 static int unixMapfile(unixFile *pFd, i64 nMap){ in unixMapfile()
5276 unixFile *pFd = (unixFile *)fd; /* The underlying database file */ in unixFetch()
5307 unixFile *pFd = (unixFile *)fd; /* The underlying database file */ in unixUnfetch()
5395 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
5399 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
5527 unixFile *pNew /* open file object for the database file */ in autolockIoFinderImpl()
5579 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
5591 unixFile *pNew /* the open file object */ in vxworksIoFinderImpl()
5615 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
5622 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
5643 unixFile *pNew = (unixFile *)pId; in fillInUnixFile()
5895 static int proxyTransformUnixFile(unixFile*, const char*);
6090 unixFile *p = (unixFile *)pFile; in unixOpen()
6161 memset(p, 0, sizeof(unixFile)); in unixOpen()
6297 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS; in unixOpen()
6300 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS; in unixOpen()
6330 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:"); in unixOpen()
6942 unixFile *conchFile; /* Open conch file */
6944 unixFile *lockProxy; /* Open proxy lock file */
7041 unixFile **ppFile, /* unixFile created and returned by ref */ in proxyCreateUnixFile()
7045 unixFile *pNew; in proxyCreateUnixFile()
7095 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew)); in proxyCreateUnixFile()
7100 memset(pNew, 0, sizeof(unixFile)); in proxyCreateUnixFile()
7176 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){ in proxyBreakConchLock()
7178 unixFile *conchFile = pCtx->conchFile; in proxyBreakConchLock()
7236 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){ in proxyConchLock()
7238 unixFile *conchFile = pCtx->conchFile; in proxyConchLock()
7314 static int proxyTakeConch(unixFile *pFile){ in proxyTakeConch()
7320 unixFile *conchFile = pCtx->conchFile; in proxyTakeConch()
7347 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN); in proxyTakeConch()
7536 static int proxyReleaseConch(unixFile *pFile){ in proxyReleaseConch()
7539 unixFile *conchFile; /* Name of the conch file */ in proxyReleaseConch()
7603 static int switchLockProxyPath(unixFile *pFile, const char *path) { in switchLockProxyPath()
7617 unixFile *lockProxy = pCtx->lockProxy; in switchLockProxyPath()
7639 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){ in proxyGetDbPathForUnixFile()
7670 static int proxyTransformUnixFile(unixFile *pFile, const char *path) { in proxyTransformUnixFile()
7760 unixFile *pFile = (unixFile*)id; in proxyFileControl()
7775 unixFile *pFile = (unixFile*)id; in proxyFileControl()
7831 unixFile *pFile = (unixFile*)id; in proxyCheckReservedLock()
7836 unixFile *proxy = pCtx->lockProxy; in proxyCheckReservedLock()
7870 unixFile *pFile = (unixFile*)id; in proxyLock()
7875 unixFile *proxy = pCtx->lockProxy; in proxyLock()
7894 unixFile *pFile = (unixFile*)id; in proxyUnlock()
7899 unixFile *proxy = pCtx->lockProxy; in proxyUnlock()
7914 unixFile *pFile = (unixFile*)id; in proxyClose()
7916 unixFile *lockProxy = pCtx->lockProxy; in proxyClose()
7917 unixFile *conchFile = pCtx->conchFile; in proxyClose()
7997 sizeof(unixFile), /* szOsFile */ \ in sqlite3_os_init()