Lines Matching refs:unixFile
39099 typedef struct unixFile unixFile; typedef
39100 struct unixFile { struct
40086 int unixFileMutexHeld(unixFile *pFile){ in unixFileMutexHeld()
40090 int unixFileMutexNotheld(unixFile *pFile){ in unixFileMutexNotheld()
40182 static void robust_close(unixFile *pFile, int h, int lineno){ in robust_close()
40193 static void storeLastErrno(unixFile *pFile, int error){ in storeLastErrno()
40200 static void closePendingFds(unixFile *pFile){ in closePendingFds()
40219 static void releaseInodeInfo(unixFile *pFile){ in releaseInodeInfo()
40257 unixFile *pFile, /* Unix file with file desc used in the key */ in findInodeInfo()
40348 static int fileHasMoved(unixFile *pFile){ in fileHasMoved()
40369 static void verifyDbFile(unixFile *pFile){ in verifyDbFile()
40405 unixFile *pFile = (unixFile*)id; in unixCheckReservedLock()
40465 unixFile *pFile /* Structure holding timeout value */ in osSetPosixAdvisoryLock()
40503 static int unixFileLock(unixFile *pFile, struct flock *pLock){ in unixFileLock()
40602 unixFile *pFile = (unixFile*)id; in unixLock()
40787 static void setPendingFd(unixFile *pFile){ in setPendingFd()
40811 unixFile *pFile = (unixFile*)id; in posixUnlock()
40972 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 ); in unixUnlock()
40978 static int unixMapfile(unixFile *pFd, i64 nByte);
40979 static void unixUnmapfile(unixFile *pFd);
40993 unixFile *pFile = (unixFile*)id; in closeUnixFile()
41020 memset(pFile, 0, sizeof(unixFile)); in closeUnixFile()
41029 unixFile *pFile = (unixFile *)id; in unixClose()
41139 unixFile *pFile = (unixFile*)id; in dotlockCheckReservedLock()
41179 unixFile *pFile = (unixFile*)id; in dotlockLock()
41229 unixFile *pFile = (unixFile*)id; in dotlockUnlock()
41272 unixFile *pFile = (unixFile*)id; in dotlockClose()
41319 unixFile *pFile = (unixFile*)id; in flockCheckReservedLock()
41378 unixFile *pFile = (unixFile*)id; in flockLock()
41421 unixFile *pFile = (unixFile*)id; in flockUnlock()
41486 unixFile *pFile = (unixFile*)id; in semXCheckReservedLock()
41551 unixFile *pFile = (unixFile*)id; in semXLock()
41584 unixFile *pFile = (unixFile*)id; in semXUnlock()
41622 unixFile *pFile = (unixFile*)id; in semXClose()
41682 unixFile *pFile, /* Open file descriptor on path */ in afpSetLock()
41729 unixFile *pFile = (unixFile*)id; in afpCheckReservedLock()
41797 unixFile *pFile = (unixFile*)id; in afpLock()
41979 unixFile *pFile = (unixFile*)id; in afpUnlock()
42073 unixFile *pFile = (unixFile*)id; in afpClose()
42149 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){ in seekAndRead()
42169 storeLastErrno((unixFile*)id, errno); in seekAndRead()
42178 storeLastErrno((unixFile*)id, errno); in seekAndRead()
42204 unixFile *pFile = (unixFile *)id; in unixRead()
42320 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){ in seekAndWrite()
42335 unixFile *pFile = (unixFile*)id; in unixWrite()
42599 unixFile *pFile = (unixFile*)id; in unixSync()
42648 unixFile *pFile = (unixFile *)id; in unixTruncate()
42701 rc = osFstat(((unixFile*)id)->h, &buf); in unixFileSize()
42704 storeLastErrno((unixFile*)id, errno); in unixFileSize()
42735 static int fcntlSizeHint(unixFile *pFile, i64 nByte){ in fcntlSizeHint()
42804 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){ in unixModeBit()
42817 static int unixFcntlExternalReader(unixFile*, int*);
42824 unixFile *pFile = (unixFile*)id; in unixFileControl()
42942 ((unixFile*)id)->dbUpdate = 0; in unixFileControl()
42955 return unixFcntlExternalReader((unixFile*)id, (int*)pArg); in unixFileControl()
42975 static void setDeviceCharacteristics(unixFile *pFd){ in setDeviceCharacteristics()
43001 static void setDeviceCharacteristics(unixFile *pFile){ in setDeviceCharacteristics()
43084 unixFile *pFd = (unixFile*)id; in unixSectorSize()
43103 unixFile *pFd = (unixFile*)id; in unixDeviceCharacteristics()
43235 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){ in unixFcntlExternalReader()
43268 unixFile *pFile, /* Open connection to the WAL file */ in unixShmSystemLock()
43374 static void unixShmPurge(unixFile *pFd){ in unixShmPurge()
43413 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){ in unixLockSharedMemory()
43515 static int unixOpenSharedMemory(unixFile *pDbFd){ in unixOpenSharedMemory()
43676 unixFile *pDbFd = (unixFile*)fd; in unixShmMap()
43853 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */ in unixShmLock()
44053 || unixFileMutexNotheld((unixFile*)fd) in unixShmBarrier()
44073 unixFile *pDbFd; /* The underlying database file */ in unixShmUnmap()
44075 pDbFd = (unixFile*)fd; in unixShmUnmap()
44123 static void unixUnmapfile(unixFile *pFd){ in unixUnmapfile()
44149 unixFile *pFd, /* File descriptor object */ in unixRemapfile()
44240 static int unixMapfile(unixFile *pFd, i64 nMap){ in unixMapfile()
44279 unixFile *pFd = (unixFile *)fd; /* The underlying database file */ in unixFetch()
44315 unixFile *pFd = (unixFile *)fd; /* The underlying database file */ in unixUnfetch()
44403 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
44407 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
44535 unixFile *pNew /* open file object for the database file */ in autolockIoFinderImpl()
44587 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
44599 unixFile *pNew /* the open file object */ in vxworksIoFinderImpl()
44623 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
44630 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
44651 unixFile *pNew = (unixFile *)pId; in fillInUnixFile()
44903 static int proxyTransformUnixFile(unixFile*, const char*);
45098 unixFile *p = (unixFile *)pFile; in unixOpen()
45169 memset(p, 0, sizeof(unixFile)); in unixOpen()
45312 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS; in unixOpen()
45315 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS; in unixOpen()
45345 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:"); in unixOpen()
45960 unixFile *conchFile; /* Open conch file */
45962 unixFile *lockProxy; /* Open proxy lock file */
46059 unixFile **ppFile, /* unixFile created and returned by ref */ in proxyCreateUnixFile()
46063 unixFile *pNew; in proxyCreateUnixFile()
46113 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew)); in proxyCreateUnixFile()
46118 memset(pNew, 0, sizeof(unixFile)); in proxyCreateUnixFile()
46194 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){ in proxyBreakConchLock()
46196 unixFile *conchFile = pCtx->conchFile; in proxyBreakConchLock()
46254 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){ in proxyConchLock()
46256 unixFile *conchFile = pCtx->conchFile; in proxyConchLock()
46332 static int proxyTakeConch(unixFile *pFile){ in proxyTakeConch()
46338 unixFile *conchFile = pCtx->conchFile; in proxyTakeConch()
46365 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN); in proxyTakeConch()
46554 static int proxyReleaseConch(unixFile *pFile){ in proxyReleaseConch()
46557 unixFile *conchFile; /* Name of the conch file */ in proxyReleaseConch()
46621 static int switchLockProxyPath(unixFile *pFile, const char *path) { in switchLockProxyPath()
46635 unixFile *lockProxy = pCtx->lockProxy; in switchLockProxyPath()
46657 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){ in proxyGetDbPathForUnixFile()
46688 static int proxyTransformUnixFile(unixFile *pFile, const char *path) { in proxyTransformUnixFile()
46778 unixFile *pFile = (unixFile*)id; in proxyFileControl()
46793 unixFile *pFile = (unixFile*)id; in proxyFileControl()
46849 unixFile *pFile = (unixFile*)id; in proxyCheckReservedLock()
46854 unixFile *proxy = pCtx->lockProxy; in proxyCheckReservedLock()
46888 unixFile *pFile = (unixFile*)id; in proxyLock()
46893 unixFile *proxy = pCtx->lockProxy; in proxyLock()
46912 unixFile *pFile = (unixFile*)id; in proxyUnlock()
46917 unixFile *proxy = pCtx->lockProxy; in proxyUnlock()
46932 unixFile *pFile = (unixFile*)id; in proxyClose()
46934 unixFile *lockProxy = pCtx->lockProxy; in proxyClose()
46935 unixFile *conchFile = pCtx->conchFile; in proxyClose()
47015 sizeof(unixFile), /* szOsFile */ \ in sqlite3_os_init()