Lines Matching refs:unixFile
38614 typedef struct unixFile unixFile;
38615 struct unixFile {
39600 int unixFileMutexHeld(unixFile *pFile){
39604 int unixFileMutexNotheld(unixFile *pFile){
39696 static void robust_close(unixFile *pFile, int h, int lineno){
39707 static void storeLastErrno(unixFile *pFile, int error){
39714 static void closePendingFds(unixFile *pFile){
39733 static void releaseInodeInfo(unixFile *pFile){
39771 unixFile *pFile, /* Unix file with file desc used in the key */
39862 static int fileHasMoved(unixFile *pFile){
39883 static void verifyDbFile(unixFile *pFile){
39919 unixFile *pFile = (unixFile*)id;
39979 unixFile *pFile /* Structure holding timeout value */
40017 static int unixFileLock(unixFile *pFile, struct flock *pLock){
40109 unixFile *pFile = (unixFile*)id;
40294 static void setPendingFd(unixFile *pFile){
40318 unixFile *pFile = (unixFile*)id;
40479 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
40485 static int unixMapfile(unixFile *pFd, i64 nByte);
40486 static void unixUnmapfile(unixFile *pFd);
40500 unixFile *pFile = (unixFile*)id;
40527 memset(pFile, 0, sizeof(unixFile));
40536 unixFile *pFile = (unixFile *)id;
40651 unixFile *pFile = (unixFile*)id;
40690 unixFile *pFile = (unixFile*)id;
40740 unixFile *pFile = (unixFile*)id;
40783 unixFile *pFile = (unixFile*)id;
40831 unixFile *pFile = (unixFile*)id;
40910 unixFile *pFile = (unixFile*)id;
40953 unixFile *pFile = (unixFile*)id;
41018 unixFile *pFile = (unixFile*)id;
41083 unixFile *pFile = (unixFile*)id;
41116 unixFile *pFile = (unixFile*)id;
41154 unixFile *pFile = (unixFile*)id;
41214 unixFile *pFile, /* Open file descriptor on path */
41261 unixFile *pFile = (unixFile*)id;
41329 unixFile *pFile = (unixFile*)id;
41511 unixFile *pFile = (unixFile*)id;
41605 unixFile *pFile = (unixFile*)id;
41681 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
41701 storeLastErrno((unixFile*)id, errno);
41710 storeLastErrno((unixFile*)id, errno);
41736 unixFile *pFile = (unixFile *)id;
41852 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
41867 unixFile *pFile = (unixFile*)id;
42131 unixFile *pFile = (unixFile*)id;
42180 unixFile *pFile = (unixFile *)id;
42233 rc = osFstat(((unixFile*)id)->h, &buf);
42236 storeLastErrno((unixFile*)id, errno);
42267 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
42336 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
42349 static int unixFcntlExternalReader(unixFile*, int*);
42356 unixFile *pFile = (unixFile*)id;
42463 ((unixFile*)id)->dbUpdate = 0;
42476 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
42496 static void setDeviceCharacteristics(unixFile *pFd){
42521 static void setDeviceCharacteristics(unixFile *pFile){
42604 unixFile *pFd = (unixFile*)id;
42623 unixFile *pFd = (unixFile*)id;
42755 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){
42788 unixFile *pFile, /* Open connection to the WAL file */
42894 static void unixShmPurge(unixFile *pFd){
42933 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
43035 static int unixOpenSharedMemory(unixFile *pDbFd){
43196 unixFile *pDbFd = (unixFile*)fd;
43373 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
43574 || unixFileMutexNotheld((unixFile*)fd)
43594 unixFile *pDbFd; /* The underlying database file */
43596 pDbFd = (unixFile*)fd;
43644 static void unixUnmapfile(unixFile *pFd){
43670 unixFile *pFd, /* File descriptor object */
43761 static int unixMapfile(unixFile *pFd, i64 nMap){
43800 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43836 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43924 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
43928 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
44056 unixFile *pNew /* open file object for the database file */
44108 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
44120 unixFile *pNew /* the open file object */
44144 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
44151 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
44172 unixFile *pNew = (unixFile *)pId;
44424 static int proxyTransformUnixFile(unixFile*, const char*);
44619 unixFile *p = (unixFile *)pFile;
44690 memset(p, 0, sizeof(unixFile));
44833 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44836 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44866 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
45481 unixFile *conchFile; /* Open conch file */
45483 unixFile *lockProxy; /* Open proxy lock file */
45580 unixFile **ppFile, /* unixFile created and returned by ref */
45584 unixFile *pNew;
45634 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
45639 memset(pNew, 0, sizeof(unixFile));
45715 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
45717 unixFile *conchFile = pCtx->conchFile;
45775 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
45777 unixFile *conchFile = pCtx->conchFile;
45853 static int proxyTakeConch(unixFile *pFile){
45859 unixFile *conchFile = pCtx->conchFile;
45886 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
46075 static int proxyReleaseConch(unixFile *pFile){
46078 unixFile *conchFile; /* Name of the conch file */
46142 static int switchLockProxyPath(unixFile *pFile, const char *path) {
46156 unixFile *lockProxy = pCtx->lockProxy;
46178 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
46209 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
46299 unixFile *pFile = (unixFile*)id;
46314 unixFile *pFile = (unixFile*)id;
46370 unixFile *pFile = (unixFile*)id;
46375 unixFile *proxy = pCtx->lockProxy;
46409 unixFile *pFile = (unixFile*)id;
46414 unixFile *proxy = pCtx->lockProxy;
46433 unixFile *pFile = (unixFile*)id;
46438 unixFile *proxy = pCtx->lockProxy;
46453 unixFile *pFile = (unixFile*)id;
46455 unixFile *lockProxy = pCtx->lockProxy;
46456 unixFile *conchFile = pCtx->conchFile;
46536 sizeof(unixFile), /* szOsFile */ \