Lines Matching refs:unixFile

33814 ** Allowed values of unixFile.fsFlags
33878 ** The unixFile structure is subclass of sqlite3_file specific to the unix
33881 typedef struct unixFile unixFile;
33882 struct unixFile {
33884 sqlite3_vfs *pVfs; /* The VFS that created this unixFile */
33945 ** Allowed values for the unixFile.ctrlFlags bitmask:
34931 ** per inode, so if the same inode is opened twice, both unixFile structures
34949 ** When an attempt is made to close an unixFile, if there are
34950 ** other unixFile open on the same inode that are holding locks, the call
35001 ** A single inode can have multiple file descriptors, so each unixFile
35003 ** object keeps a count of the number of unixFile pointing to it.
35052 ** True if the inode mutex (on the unixFile.pFileMutex field) is held, or not.
35056 int unixFileMutexHeld(unixFile *pFile){
35060 int unixFileMutexNotheld(unixFile *pFile){
35148 static void robust_close(unixFile *pFile, int h, int lineno){
35159 static void storeLastErrno(unixFile *pFile, int error){
35166 static void closePendingFds(unixFile *pFile){
35185 static void releaseInodeInfo(unixFile *pFile){
35223 unixFile *pFile, /* Unix file with file desc used in the key */
35314 static int fileHasMoved(unixFile *pFile){
35327 ** Check a unixFile that is a database. Verify the following:
35335 static void verifyDbFile(unixFile *pFile){
35371 unixFile *pFile = (unixFile*)id;
35417 ** which is a pointer to a unixFile. If the unixFile->iBusyTimeout
35431 unixFile *pFile /* Structure holding timeout value */
35469 static int unixFileLock(unixFile *pFile, struct flock *pLock){
35560 unixFile *pFile = (unixFile*)id;
35572 ** unixFile, do nothing. Don't use the end_lock: exit path, as
35595 /* If some thread using this PID has a lock via a different unixFile*
35746 static void setPendingFd(unixFile *pFile){
35770 unixFile *pFile = (unixFile*)id;
35931 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
35937 static int unixMapfile(unixFile *pFd, i64 nByte);
35938 static void unixUnmapfile(unixFile *pFd);
35944 ** handles, if they are valid, and sets all fields of the unixFile
35952 unixFile *pFile = (unixFile*)id;
35979 memset(pFile, 0, sizeof(unixFile));
35988 unixFile *pFile = (unixFile *)id;
35997 /* unixFile.pInode is always valid here. Otherwise, a different close
36103 unixFile *pFile = (unixFile*)id;
36142 unixFile *pFile = (unixFile*)id;
36192 unixFile *pFile = (unixFile*)id;
36235 unixFile *pFile = (unixFile*)id;
36283 unixFile *pFile = (unixFile*)id;
36362 unixFile *pFile = (unixFile*)id;
36405 unixFile *pFile = (unixFile*)id;
36470 unixFile *pFile = (unixFile*)id;
36535 unixFile *pFile = (unixFile*)id;
36568 unixFile *pFile = (unixFile*)id;
36606 unixFile *pFile = (unixFile*)id;
36666 unixFile *pFile, /* Open file descriptor on path */
36713 unixFile *pFile = (unixFile*)id;
36781 unixFile *pFile = (unixFile*)id;
36791 ** unixFile, do nothing. Don't use the afp_end_lock: exit path, as
36814 /* If some thread using this PID has a lock via a different unixFile*
36963 unixFile *pFile = (unixFile*)id;
37066 unixFile *pFile = (unixFile*)id;
37148 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
37168 storeLastErrno((unixFile*)id, errno);
37177 storeLastErrno((unixFile*)id, errno);
37203 unixFile *pFile = (unixFile *)id;
37319 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
37334 unixFile *pFile = (unixFile*)id;
37598 unixFile *pFile = (unixFile*)id;
37647 unixFile *pFile = (unixFile *)id;
37700 rc = osFstat(((unixFile*)id)->h, &buf);
37703 storeLastErrno((unixFile*)id, errno);
37734 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
37803 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
37820 unixFile *pFile = (unixFile*)id;
37921 ((unixFile*)id)->dbUpdate = 0;
37945 static void setDeviceCharacteristics(unixFile *pFd){
37970 static void setDeviceCharacteristics(unixFile *pFile){
38053 unixFile *pFd = (unixFile*)id;
38072 unixFile *pFd = (unixFile*)id;
38183 unixFile *pFile, /* Open connection to the WAL file */
38281 static void unixShmPurge(unixFile *pFd){
38315 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
38404 static int unixOpenSharedMemory(unixFile *pDbFd){
38553 unixFile *pDbFd = (unixFile*)fd;
38727 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
38859 || unixFileMutexNotheld((unixFile*)fd)
38879 unixFile *pDbFd; /* The underlying database file */
38881 pDbFd = (unixFile*)fd;
38929 static void unixUnmapfile(unixFile *pFd){
38945 ** unixFile.pMapRegion
38946 ** unixFile.mmapSize
38947 ** unixFile.mmapSizeActual
38955 unixFile *pFd, /* File descriptor object */
39046 static int unixMapfile(unixFile *pFd, i64 nMap){
39085 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
39116 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
39204 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
39208 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
39336 unixFile *pNew /* open file object for the database file */
39388 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
39400 unixFile *pNew /* the open file object */
39424 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
39431 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
39442 ** Initialize the contents of the unixFile structure pointed to by pId.
39447 sqlite3_file *pId, /* Write to the unixFile structure here */
39452 unixFile *pNew = (unixFile *)pId;
39681 ** Routine to transform a unixFile into a proxy-locking unixFile.
39685 static int proxyTransformUnixFile(unixFile*, const char*);
39877 unixFile *p = (unixFile *)pFile;
39948 memset(p, 0, sizeof(unixFile));
40079 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
40082 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
40112 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
40770 unixFile *conchFile; /* Open conch file */
40772 unixFile *lockProxy; /* Open proxy lock file */
40868 const char *path, /* path for the new unixFile */
40869 unixFile **ppFile, /* unixFile created and returned by ref */
40873 unixFile *pNew;
40923 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
40928 memset(pNew, 0, sizeof(unixFile));
41004 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
41006 unixFile *conchFile = pCtx->conchFile;
41064 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
41066 unixFile *conchFile = pCtx->conchFile;
41142 static int proxyTakeConch(unixFile *pFile){
41148 unixFile *conchFile = pCtx->conchFile;
41175 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
41364 static int proxyReleaseConch(unixFile *pFile){
41367 unixFile *conchFile; /* Name of the conch file */
41431 static int switchLockProxyPath(unixFile *pFile, const char *path) {
41445 unixFile *lockProxy = pCtx->lockProxy;
41467 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
41498 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
41588 unixFile *pFile = (unixFile*)id;
41603 unixFile *pFile = (unixFile*)id;
41659 unixFile *pFile = (unixFile*)id;
41664 unixFile *proxy = pCtx->lockProxy;
41698 unixFile *pFile = (unixFile*)id;
41703 unixFile *proxy = pCtx->lockProxy;
41722 unixFile *pFile = (unixFile*)id;
41727 unixFile *proxy = pCtx->lockProxy;
41742 unixFile *pFile = (unixFile*)id;
41744 unixFile *lockProxy = pCtx->lockProxy;
41745 unixFile *conchFile = pCtx->conchFile;
41825 sizeof(unixFile), /* szOsFile */ \