Lines Matching refs:unixFile
35683 typedef struct unixFile unixFile;
35684 struct unixFile {
36660 int unixFileMutexHeld(unixFile *pFile){
36664 int unixFileMutexNotheld(unixFile *pFile){
36752 static void robust_close(unixFile *pFile, int h, int lineno){
36763 static void storeLastErrno(unixFile *pFile, int error){
36770 static void closePendingFds(unixFile *pFile){
36789 static void releaseInodeInfo(unixFile *pFile){
36827 unixFile *pFile, /* Unix file with file desc used in the key */
36918 static int fileHasMoved(unixFile *pFile){
36939 static void verifyDbFile(unixFile *pFile){
36975 unixFile *pFile = (unixFile*)id;
37035 unixFile *pFile /* Structure holding timeout value */
37073 static int unixFileLock(unixFile *pFile, struct flock *pLock){
37164 unixFile *pFile = (unixFile*)id;
37350 static void setPendingFd(unixFile *pFile){
37374 unixFile *pFile = (unixFile*)id;
37535 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
37541 static int unixMapfile(unixFile *pFd, i64 nByte);
37542 static void unixUnmapfile(unixFile *pFd);
37556 unixFile *pFile = (unixFile*)id;
37583 memset(pFile, 0, sizeof(unixFile));
37592 unixFile *pFile = (unixFile *)id;
37707 unixFile *pFile = (unixFile*)id;
37746 unixFile *pFile = (unixFile*)id;
37796 unixFile *pFile = (unixFile*)id;
37839 unixFile *pFile = (unixFile*)id;
37887 unixFile *pFile = (unixFile*)id;
37966 unixFile *pFile = (unixFile*)id;
38009 unixFile *pFile = (unixFile*)id;
38074 unixFile *pFile = (unixFile*)id;
38139 unixFile *pFile = (unixFile*)id;
38172 unixFile *pFile = (unixFile*)id;
38210 unixFile *pFile = (unixFile*)id;
38270 unixFile *pFile, /* Open file descriptor on path */
38317 unixFile *pFile = (unixFile*)id;
38385 unixFile *pFile = (unixFile*)id;
38567 unixFile *pFile = (unixFile*)id;
38670 unixFile *pFile = (unixFile*)id;
38752 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
38772 storeLastErrno((unixFile*)id, errno);
38781 storeLastErrno((unixFile*)id, errno);
38807 unixFile *pFile = (unixFile *)id;
38923 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
38938 unixFile *pFile = (unixFile*)id;
39202 unixFile *pFile = (unixFile*)id;
39251 unixFile *pFile = (unixFile *)id;
39304 rc = osFstat(((unixFile*)id)->h, &buf);
39307 storeLastErrno((unixFile*)id, errno);
39338 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
39407 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
39420 static int unixFcntlExternalReader(unixFile*, int*);
39427 unixFile *pFile = (unixFile*)id;
39528 ((unixFile*)id)->dbUpdate = 0;
39541 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
39561 static void setDeviceCharacteristics(unixFile *pFd){
39586 static void setDeviceCharacteristics(unixFile *pFile){
39669 unixFile *pFd = (unixFile*)id;
39688 unixFile *pFd = (unixFile*)id;
39800 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){
39833 unixFile *pFile, /* Open connection to the WAL file */
39931 static void unixShmPurge(unixFile *pFd){
39965 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
40054 static int unixOpenSharedMemory(unixFile *pDbFd){
40203 unixFile *pDbFd = (unixFile*)fd;
40377 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
40515 || unixFileMutexNotheld((unixFile*)fd)
40535 unixFile *pDbFd; /* The underlying database file */
40537 pDbFd = (unixFile*)fd;
40585 static void unixUnmapfile(unixFile *pFd){
40611 unixFile *pFd, /* File descriptor object */
40702 static int unixMapfile(unixFile *pFd, i64 nMap){
40741 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
40772 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
40860 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
40864 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
40992 unixFile *pNew /* open file object for the database file */
41044 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
41056 unixFile *pNew /* the open file object */
41080 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
41087 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
41108 unixFile *pNew = (unixFile *)pId;
41351 static int proxyTransformUnixFile(unixFile*, const char*);
41546 unixFile *p = (unixFile *)pFile;
41617 memset(p, 0, sizeof(unixFile));
41753 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
41756 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
41786 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
42398 unixFile *conchFile; /* Open conch file */
42400 unixFile *lockProxy; /* Open proxy lock file */
42497 unixFile **ppFile, /* unixFile created and returned by ref */
42501 unixFile *pNew;
42551 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
42556 memset(pNew, 0, sizeof(unixFile));
42632 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
42634 unixFile *conchFile = pCtx->conchFile;
42692 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
42694 unixFile *conchFile = pCtx->conchFile;
42770 static int proxyTakeConch(unixFile *pFile){
42776 unixFile *conchFile = pCtx->conchFile;
42803 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
42992 static int proxyReleaseConch(unixFile *pFile){
42995 unixFile *conchFile; /* Name of the conch file */
43059 static int switchLockProxyPath(unixFile *pFile, const char *path) {
43073 unixFile *lockProxy = pCtx->lockProxy;
43095 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
43126 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
43216 unixFile *pFile = (unixFile*)id;
43231 unixFile *pFile = (unixFile*)id;
43287 unixFile *pFile = (unixFile*)id;
43292 unixFile *proxy = pCtx->lockProxy;
43326 unixFile *pFile = (unixFile*)id;
43331 unixFile *proxy = pCtx->lockProxy;
43350 unixFile *pFile = (unixFile*)id;
43355 unixFile *proxy = pCtx->lockProxy;
43370 unixFile *pFile = (unixFile*)id;
43372 unixFile *lockProxy = pCtx->lockProxy;
43373 unixFile *conchFile = pCtx->conchFile;
43453 sizeof(unixFile), /* szOsFile */ \