Lines Matching refs:unixFile
38426 typedef struct unixFile unixFile;
38427 struct unixFile {
39412 int unixFileMutexHeld(unixFile *pFile){
39416 int unixFileMutexNotheld(unixFile *pFile){
39504 static void robust_close(unixFile *pFile, int h, int lineno){
39515 static void storeLastErrno(unixFile *pFile, int error){
39522 static void closePendingFds(unixFile *pFile){
39541 static void releaseInodeInfo(unixFile *pFile){
39579 unixFile *pFile, /* Unix file with file desc used in the key */
39670 static int fileHasMoved(unixFile *pFile){
39691 static void verifyDbFile(unixFile *pFile){
39727 unixFile *pFile = (unixFile*)id;
39787 unixFile *pFile /* Structure holding timeout value */
39825 static int unixFileLock(unixFile *pFile, struct flock *pLock){
39917 unixFile *pFile = (unixFile*)id;
40102 static void setPendingFd(unixFile *pFile){
40126 unixFile *pFile = (unixFile*)id;
40287 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
40293 static int unixMapfile(unixFile *pFd, i64 nByte);
40294 static void unixUnmapfile(unixFile *pFd);
40308 unixFile *pFile = (unixFile*)id;
40335 memset(pFile, 0, sizeof(unixFile));
40344 unixFile *pFile = (unixFile *)id;
40459 unixFile *pFile = (unixFile*)id;
40498 unixFile *pFile = (unixFile*)id;
40548 unixFile *pFile = (unixFile*)id;
40591 unixFile *pFile = (unixFile*)id;
40639 unixFile *pFile = (unixFile*)id;
40718 unixFile *pFile = (unixFile*)id;
40761 unixFile *pFile = (unixFile*)id;
40826 unixFile *pFile = (unixFile*)id;
40891 unixFile *pFile = (unixFile*)id;
40924 unixFile *pFile = (unixFile*)id;
40962 unixFile *pFile = (unixFile*)id;
41022 unixFile *pFile, /* Open file descriptor on path */
41069 unixFile *pFile = (unixFile*)id;
41137 unixFile *pFile = (unixFile*)id;
41319 unixFile *pFile = (unixFile*)id;
41413 unixFile *pFile = (unixFile*)id;
41489 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
41509 storeLastErrno((unixFile*)id, errno);
41518 storeLastErrno((unixFile*)id, errno);
41544 unixFile *pFile = (unixFile *)id;
41660 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
41675 unixFile *pFile = (unixFile*)id;
41939 unixFile *pFile = (unixFile*)id;
41988 unixFile *pFile = (unixFile *)id;
42041 rc = osFstat(((unixFile*)id)->h, &buf);
42044 storeLastErrno((unixFile*)id, errno);
42075 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
42144 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
42157 static int unixFcntlExternalReader(unixFile*, int*);
42164 unixFile *pFile = (unixFile*)id;
42271 ((unixFile*)id)->dbUpdate = 0;
42284 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
42304 static void setDeviceCharacteristics(unixFile *pFd){
42329 static void setDeviceCharacteristics(unixFile *pFile){
42412 unixFile *pFd = (unixFile*)id;
42431 unixFile *pFd = (unixFile*)id;
42563 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){
42596 unixFile *pFile, /* Open connection to the WAL file */
42702 static void unixShmPurge(unixFile *pFd){
42741 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
42843 static int unixOpenSharedMemory(unixFile *pDbFd){
43004 unixFile *pDbFd = (unixFile*)fd;
43181 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
43382 || unixFileMutexNotheld((unixFile*)fd)
43402 unixFile *pDbFd; /* The underlying database file */
43404 pDbFd = (unixFile*)fd;
43452 static void unixUnmapfile(unixFile *pFd){
43478 unixFile *pFd, /* File descriptor object */
43569 static int unixMapfile(unixFile *pFd, i64 nMap){
43608 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43644 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43732 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
43736 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
43864 unixFile *pNew /* open file object for the database file */
43916 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
43928 unixFile *pNew /* the open file object */
43952 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
43959 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
43980 unixFile *pNew = (unixFile *)pId;
44232 static int proxyTransformUnixFile(unixFile*, const char*);
44427 unixFile *p = (unixFile *)pFile;
44498 memset(p, 0, sizeof(unixFile));
44634 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44637 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44667 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
45282 unixFile *conchFile; /* Open conch file */
45284 unixFile *lockProxy; /* Open proxy lock file */
45381 unixFile **ppFile, /* unixFile created and returned by ref */
45385 unixFile *pNew;
45435 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
45440 memset(pNew, 0, sizeof(unixFile));
45516 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
45518 unixFile *conchFile = pCtx->conchFile;
45576 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
45578 unixFile *conchFile = pCtx->conchFile;
45654 static int proxyTakeConch(unixFile *pFile){
45660 unixFile *conchFile = pCtx->conchFile;
45687 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
45876 static int proxyReleaseConch(unixFile *pFile){
45879 unixFile *conchFile; /* Name of the conch file */
45943 static int switchLockProxyPath(unixFile *pFile, const char *path) {
45957 unixFile *lockProxy = pCtx->lockProxy;
45979 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
46010 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
46100 unixFile *pFile = (unixFile*)id;
46115 unixFile *pFile = (unixFile*)id;
46171 unixFile *pFile = (unixFile*)id;
46176 unixFile *proxy = pCtx->lockProxy;
46210 unixFile *pFile = (unixFile*)id;
46215 unixFile *proxy = pCtx->lockProxy;
46234 unixFile *pFile = (unixFile*)id;
46239 unixFile *proxy = pCtx->lockProxy;
46254 unixFile *pFile = (unixFile*)id;
46256 unixFile *lockProxy = pCtx->lockProxy;
46257 unixFile *conchFile = pCtx->conchFile;
46337 sizeof(unixFile), /* szOsFile */ \