Lines Matching refs:unixFile
33486 typedef struct unixFile unixFile;
33487 struct unixFile {
34667 int unixFileMutexHeld(unixFile *pFile){
34671 int unixFileMutexNotheld(unixFile *pFile){
34759 static void robust_close(unixFile *pFile, int h, int lineno){
34776 static void storeLastErrno(unixFile *pFile, int error){
34783 static void closePendingFds(unixFile *pFile){
34802 static void releaseInodeInfo(unixFile *pFile){
34840 unixFile *pFile, /* Unix file with file desc used in the key */
34931 static int fileHasMoved(unixFile *pFile){
34952 static void verifyDbFile(unixFile *pFile){
34988 unixFile *pFile = (unixFile*)id;
35045 unixFile *pFile /* Structure holding timeout value */
35083 static int unixFileLock(unixFile *pFile, struct flock *pLock){
35174 unixFile *pFile = (unixFile*)id;
35360 static void setPendingFd(unixFile *pFile){
35384 unixFile *pFile = (unixFile*)id;
35545 assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 );
35551 static int unixMapfile(unixFile *pFd, i64 nByte);
35552 static void unixUnmapfile(unixFile *pFd);
35566 unixFile *pFile = (unixFile*)id;
35593 memset(pFile, 0, sizeof(unixFile));
35602 unixFile *pFile = (unixFile *)id;
35716 unixFile *pFile = (unixFile*)id;
35755 unixFile *pFile = (unixFile*)id;
35805 unixFile *pFile = (unixFile*)id;
35848 unixFile *pFile = (unixFile*)id;
35896 unixFile *pFile = (unixFile*)id;
35975 unixFile *pFile = (unixFile*)id;
36018 unixFile *pFile = (unixFile*)id;
36083 unixFile *pFile = (unixFile*)id;
36148 unixFile *pFile = (unixFile*)id;
36181 unixFile *pFile = (unixFile*)id;
36219 unixFile *pFile = (unixFile*)id;
36279 unixFile *pFile, /* Open file descriptor on path */
36326 unixFile *pFile = (unixFile*)id;
36394 unixFile *pFile = (unixFile*)id;
36576 unixFile *pFile = (unixFile*)id;
36679 unixFile *pFile = (unixFile*)id;
36761 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
36781 storeLastErrno((unixFile*)id, errno);
36790 storeLastErrno((unixFile*)id, errno);
36816 unixFile *pFile = (unixFile *)id;
36915 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
36930 unixFile *pFile = (unixFile*)id;
37194 unixFile *pFile = (unixFile*)id;
37243 unixFile *pFile = (unixFile *)id;
37296 rc = osFstat(((unixFile*)id)->h, &buf);
37299 storeLastErrno((unixFile*)id, errno);
37300 return unixLogError(SQLITE_IOERR_FSTAT, "fstat", ((unixFile*)id)->zPath);
37330 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
37399 static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){
37416 unixFile *pFile = (unixFile*)id;
37517 ((unixFile*)id)->dbUpdate = 0;
37541 static void setDeviceCharacteristics(unixFile *pFd){
37566 static void setDeviceCharacteristics(unixFile *pFile){
37649 unixFile *pFd = (unixFile*)id;
37668 unixFile *pFd = (unixFile*)id;
37778 unixFile *pFile, /* Open connection to the WAL file */
37876 static void unixShmPurge(unixFile *pFd){
37910 static int unixLockSharedMemory(unixFile *pDbFd, unixShmNode *pShmNode){
37999 static int unixOpenSharedMemory(unixFile *pDbFd){
38148 unixFile *pDbFd = (unixFile*)fd;
38290 unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */
38421 || unixFileMutexNotheld((unixFile*)fd)
38441 unixFile *pDbFd; /* The underlying database file */
38443 pDbFd = (unixFile*)fd;
38491 static void unixUnmapfile(unixFile *pFd){
38517 unixFile *pFd, /* File descriptor object */
38608 static int unixMapfile(unixFile *pFd, i64 nMap){
38647 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
38678 unixFile *pFd = (unixFile *)fd; /* The underlying database file */
38766 static const sqlite3_io_methods *FINDER##Impl(const char *z, unixFile *p){ \
38770 static const sqlite3_io_methods *(*const FINDER)(const char*,unixFile *p) \
38898 unixFile *pNew /* open file object for the database file */
38950 *(*const autolockIoFinder)(const char*,unixFile*) = autolockIoFinderImpl;
38962 unixFile *pNew /* the open file object */
38986 *(*const vxworksIoFinder)(const char*,unixFile*) = vxworksIoFinderImpl;
38993 typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
39014 unixFile *pNew = (unixFile *)pId;
39247 static int proxyTransformUnixFile(unixFile*, const char*);
39439 unixFile *p = (unixFile *)pFile;
39510 memset(p, 0, sizeof(unixFile));
39641 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
39644 ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
39674 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
40275 unixFile *conchFile; /* Open conch file */
40277 unixFile *lockProxy; /* Open proxy lock file */
40374 unixFile **ppFile, /* unixFile created and returned by ref */
40378 unixFile *pNew;
40428 pNew = (unixFile *)sqlite3_malloc64(sizeof(*pNew));
40433 memset(pNew, 0, sizeof(unixFile));
40509 static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
40511 unixFile *conchFile = pCtx->conchFile;
40569 static int proxyConchLock(unixFile *pFile, uuid_t myHostID, int lockType){
40571 unixFile *conchFile = pCtx->conchFile;
40647 static int proxyTakeConch(unixFile *pFile){
40653 unixFile *conchFile = pCtx->conchFile;
40680 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN);
40869 static int proxyReleaseConch(unixFile *pFile){
40872 unixFile *conchFile; /* Name of the conch file */
40936 static int switchLockProxyPath(unixFile *pFile, const char *path) {
40950 unixFile *lockProxy = pCtx->lockProxy;
40972 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
41003 static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
41093 unixFile *pFile = (unixFile*)id;
41108 unixFile *pFile = (unixFile*)id;
41164 unixFile *pFile = (unixFile*)id;
41169 unixFile *proxy = pCtx->lockProxy;
41203 unixFile *pFile = (unixFile*)id;
41208 unixFile *proxy = pCtx->lockProxy;
41227 unixFile *pFile = (unixFile*)id;
41232 unixFile *proxy = pCtx->lockProxy;
41247 unixFile *pFile = (unixFile*)id;
41249 unixFile *lockProxy = pCtx->lockProxy;
41250 unixFile *conchFile = pCtx->conchFile;
41330 sizeof(unixFile), /* szOsFile */ \