Lines Matching refs:unixFile
38151 typedef struct unixFile unixFile;
38152 struct unixFile {
39143 int unixFileMutexHeld(unixFile *pFile){
39147 int unixFileMutexNotheld(unixFile *pFile){
39235 static void robust_close(unixFile *pFile, int h, int lineno){
39252 static void storeLastErrno(unixFile *pFile, int error){
39259 static void closePendingFds(unixFile *pFile){
39278 static void releaseInodeInfo(unixFile *pFile){
39316 unixFile *pFile, /* Unix file with file desc used in the key */
39407 static int fileHasMoved(unixFile *pFile){
39428 static void verifyDbFile(unixFile *pFile){
39464 unixFile *pFile = (unixFile*)id;
39524 unixFile *pFile /* Structure holding timeout value */
39562 static int unixFileLock(unixFile *pFile, struct flock *pLock){
39654 unixFile *pFile = (unixFile*)id;
39839 static void setPendingFd(unixFile *pFile){
39863 unixFile *pFile = (unixFile*)id;
40024 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
40030 static int unixMapfile(unixFile *pFd, i64 nByte);
40031 static void unixUnmapfile(unixFile *pFd);
40045 unixFile *pFile = (unixFile*)id;
40072 memset(pFile, 0, sizeof(unixFile));
40081 unixFile *pFile = (unixFile *)id;
40196 unixFile *pFile = (unixFile*)id;
40235 unixFile *pFile = (unixFile*)id;
40285 unixFile *pFile = (unixFile*)id;
40328 unixFile *pFile = (unixFile*)id;
40376 unixFile *pFile = (unixFile*)id;
40455 unixFile *pFile = (unixFile*)id;
40498 unixFile *pFile = (unixFile*)id;
40563 unixFile *pFile = (unixFile*)id;
40628 unixFile *pFile = (unixFile*)id;
40661 unixFile *pFile = (unixFile*)id;
40699 unixFile *pFile = (unixFile*)id;
40759 unixFile *pFile, /* Open file descriptor on path */
40806 unixFile *pFile = (unixFile*)id;
40874 unixFile *pFile = (unixFile*)id;
41056 unixFile *pFile = (unixFile*)id;
41150 unixFile *pFile = (unixFile*)id;
41226 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
41246 storeLastErrno((unixFile*)id, errno);
41255 storeLastErrno((unixFile*)id, errno);
41281 unixFile *pFile = (unixFile *)id;
41397 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
41412 unixFile *pFile = (unixFile*)id;
41676 unixFile *pFile = (unixFile*)id;
41725 unixFile *pFile = (unixFile *)id;
41778 rc = osFstat(((unixFile*)id)->h, &buf);
41781 storeLastErrno((unixFile*)id, errno);
41782 return unixLogError(SQLITE_IOERR_FSTAT, "fstat", ((unixFile*)id)->zPath);
41812 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
41881 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
41894 static int unixFcntlExternalReader(unixFile*, int*);
41901 unixFile *pFile = (unixFile*)id;
42002 ((unixFile*)id)->dbUpdate = 0;
42015 return unixFcntlExternalReader((unixFile*)id, (int*)pArg);
42035 static void setDeviceCharacteristics(unixFile *pFd){
42060 static void setDeviceCharacteristics(unixFile *pFile){
42143 unixFile *pFd = (unixFile*)id;
42162 unixFile *pFd = (unixFile*)id;
42274 static int unixFcntlExternalReader(unixFile *pFile, int *piOut){
42307 unixFile *pFile, /* Open connection to the WAL file */
42405 static void unixShmPurge(unixFile *pFd){
42439 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
42528 static int unixOpenSharedMemory(unixFile *pDbFd){
42677 unixFile *pDbFd = (unixFile*)fd;
42851 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
42989 || unixFileMutexNotheld((unixFile*)fd)
43009 unixFile *pDbFd; /* The underlying database file */
43011 pDbFd = (unixFile*)fd;
43059 static void unixUnmapfile(unixFile *pFd){
43085 unixFile *pFd, /* File descriptor object */
43176 static int unixMapfile(unixFile *pFd, i64 nMap){
43215 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43251 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
43339 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
43343 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
43471 unixFile *pNew /* open file object for the database file */
43523 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
43535 unixFile *pNew /* the open file object */
43559 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
43566 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
43587 unixFile *pNew = (unixFile *)pId;
43839 static int proxyTransformUnixFile(unixFile*, const char*);
44034 unixFile *p = (unixFile *)pFile;
44105 memset(p, 0, sizeof(unixFile));
44241 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44244 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
44274 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
44889 unixFile *conchFile; /* Open conch file */
44891 unixFile *lockProxy; /* Open proxy lock file */
44988 unixFile **ppFile, /* unixFile created and returned by ref */
44992 unixFile *pNew;
45042 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
45047 memset(pNew, 0, sizeof(unixFile));
45123 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
45125 unixFile *conchFile = pCtx->conchFile;
45183 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
45185 unixFile *conchFile = pCtx->conchFile;
45261 static int proxyTakeConch(unixFile *pFile){
45267 unixFile *conchFile = pCtx->conchFile;
45294 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
45483 static int proxyReleaseConch(unixFile *pFile){
45486 unixFile *conchFile; /* Name of the conch file */
45550 static int switchLockProxyPath(unixFile *pFile, const char *path) {
45564 unixFile *lockProxy = pCtx->lockProxy;
45586 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
45617 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
45707 unixFile *pFile = (unixFile*)id;
45722 unixFile *pFile = (unixFile*)id;
45778 unixFile *pFile = (unixFile*)id;
45783 unixFile *proxy = pCtx->lockProxy;
45817 unixFile *pFile = (unixFile*)id;
45822 unixFile *proxy = pCtx->lockProxy;
45841 unixFile *pFile = (unixFile*)id;
45846 unixFile *proxy = pCtx->lockProxy;
45861 unixFile *pFile = (unixFile*)id;
45863 unixFile *lockProxy = pCtx->lockProxy;
45864 unixFile *conchFile = pCtx->conchFile;
45944 sizeof(unixFile), /* szOsFile */ \