Lines Matching refs:unixFile
35687 typedef struct unixFile unixFile;
35688 struct unixFile {
36670 int unixFileMutexHeld(unixFile *pFile){
36674 int unixFileMutexNotheld(unixFile *pFile){
36762 static void robust_close(unixFile *pFile, int h, int lineno){
36779 static void storeLastErrno(unixFile *pFile, int error){
36786 static void closePendingFds(unixFile *pFile){
36805 static void releaseInodeInfo(unixFile *pFile){
36843 unixFile *pFile, /* Unix file with file desc used in the key */
36934 static int fileHasMoved(unixFile *pFile){
36955 static void verifyDbFile(unixFile *pFile){
36991 unixFile *pFile = (unixFile*)id;
37051 unixFile *pFile /* Structure holding timeout value */
37089 static int unixFileLock(unixFile *pFile, struct flock *pLock){
37180 unixFile *pFile = (unixFile*)id;
37366 static void setPendingFd(unixFile *pFile){
37390 unixFile *pFile = (unixFile*)id;
37551 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
37557 static int unixMapfile(unixFile *pFd, i64 nByte);
37558 static void unixUnmapfile(unixFile *pFd);
37572 unixFile *pFile = (unixFile*)id;
37599 memset(pFile, 0, sizeof(unixFile));
37608 unixFile *pFile = (unixFile *)id;
37723 unixFile *pFile = (unixFile*)id;
37762 unixFile *pFile = (unixFile*)id;
37812 unixFile *pFile = (unixFile*)id;
37855 unixFile *pFile = (unixFile*)id;
37903 unixFile *pFile = (unixFile*)id;
37982 unixFile *pFile = (unixFile*)id;
38025 unixFile *pFile = (unixFile*)id;
38090 unixFile *pFile = (unixFile*)id;
38155 unixFile *pFile = (unixFile*)id;
38188 unixFile *pFile = (unixFile*)id;
38226 unixFile *pFile = (unixFile*)id;
38286 unixFile *pFile, /* Open file descriptor on path */
38333 unixFile *pFile = (unixFile*)id;
38401 unixFile *pFile = (unixFile*)id;
38583 unixFile *pFile = (unixFile*)id;
38686 unixFile *pFile = (unixFile*)id;
38768 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
38788 storeLastErrno((unixFile*)id, errno);
38797 storeLastErrno((unixFile*)id, errno);
38823 unixFile *pFile = (unixFile *)id;
38939 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
38954 unixFile *pFile = (unixFile*)id;
39218 unixFile *pFile = (unixFile*)id;
39267 unixFile *pFile = (unixFile *)id;
39320 rc = osFstat(((unixFile*)id)->h, &buf);
39323 storeLastErrno((unixFile*)id, errno);
39324 return unixLogError(SQLITE_IOERR_FSTAT, "fstat", ((unixFile*)id)->zPath);
39354 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
39423 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
39436 static int unixFcntlExternalReader(unixFile*, int*);
39443 unixFile *pFile = (unixFile*)id;
39544 ((unixFile*)id)->dbUpdate = 0;
39557 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
39577 static void setDeviceCharacteristics(unixFile *pFd){
39602 static void setDeviceCharacteristics(unixFile *pFile){
39685 unixFile *pFd = (unixFile*)id;
39704 unixFile *pFd = (unixFile*)id;
39816 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){
39849 unixFile *pFile, /* Open connection to the WAL file */
39947 static void unixShmPurge(unixFile *pFd){
39981 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
40070 static int unixOpenSharedMemory(unixFile *pDbFd){
40219 unixFile *pDbFd = (unixFile*)fd;
40393 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
40531 || unixFileMutexNotheld((unixFile*)fd)
40551 unixFile *pDbFd; /* The underlying database file */
40553 pDbFd = (unixFile*)fd;
40601 static void unixUnmapfile(unixFile *pFd){
40627 unixFile *pFd, /* File descriptor object */
40718 static int unixMapfile(unixFile *pFd, i64 nMap){
40757 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
40788 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
40876 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
40880 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
41008 unixFile *pNew /* open file object for the database file */
41060 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
41072 unixFile *pNew /* the open file object */
41096 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
41103 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
41124 unixFile *pNew = (unixFile *)pId;
41367 static int proxyTransformUnixFile(unixFile*, const char*);
41562 unixFile *p = (unixFile *)pFile;
41633 memset(p, 0, sizeof(unixFile));
41769 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
41772 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
41802 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
42414 unixFile *conchFile; /* Open conch file */
42416 unixFile *lockProxy; /* Open proxy lock file */
42513 unixFile **ppFile, /* unixFile created and returned by ref */
42517 unixFile *pNew;
42567 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
42572 memset(pNew, 0, sizeof(unixFile));
42648 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
42650 unixFile *conchFile = pCtx->conchFile;
42708 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
42710 unixFile *conchFile = pCtx->conchFile;
42786 static int proxyTakeConch(unixFile *pFile){
42792 unixFile *conchFile = pCtx->conchFile;
42819 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
43008 static int proxyReleaseConch(unixFile *pFile){
43011 unixFile *conchFile; /* Name of the conch file */
43075 static int switchLockProxyPath(unixFile *pFile, const char *path) {
43089 unixFile *lockProxy = pCtx->lockProxy;
43111 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
43142 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
43232 unixFile *pFile = (unixFile*)id;
43247 unixFile *pFile = (unixFile*)id;
43303 unixFile *pFile = (unixFile*)id;
43308 unixFile *proxy = pCtx->lockProxy;
43342 unixFile *pFile = (unixFile*)id;
43347 unixFile *proxy = pCtx->lockProxy;
43366 unixFile *pFile = (unixFile*)id;
43371 unixFile *proxy = pCtx->lockProxy;
43386 unixFile *pFile = (unixFile*)id;
43388 unixFile *lockProxy = pCtx->lockProxy;
43389 unixFile *conchFile = pCtx->conchFile;
43469 sizeof(unixFile), /* szOsFile */ \