Lines Matching refs:sqlite3_file

842 typedef struct sqlite3_file sqlite3_file;  typedef
843 struct sqlite3_file { struct
940 int (*xClose)(sqlite3_file*);
941 int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
942 int (*xWrite)(sqlite3_file*, const void*, int iAmt, sqlite3_int64 iOfst);
943 int (*xTruncate)(sqlite3_file*, sqlite3_int64 size);
944 int (*xSync)(sqlite3_file*, int flags);
945 int (*xFileSize)(sqlite3_file*, sqlite3_int64 *pSize);
946 int (*xLock)(sqlite3_file*, int);
947 int (*xUnlock)(sqlite3_file*, int);
948 int (*xCheckReservedLock)(sqlite3_file*, int *pResOut);
949 int (*xFileControl)(sqlite3_file*, int op, void *pArg);
950 int (*xSectorSize)(sqlite3_file*);
951 int (*xDeviceCharacteristics)(sqlite3_file*);
953 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
954 int (*xShmLock)(sqlite3_file*, int offset, int n, int flags);
955 void (*xShmBarrier)(sqlite3_file*);
956 int (*xShmUnmap)(sqlite3_file*, int deleteFlag);
958 int (*xFetch)(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);
959 int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p);
1383 int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,
10294 SQLITE_PRIVATE sqlite3_file *sqlite3PagerFile(Pager*);
10301 SQLITE_PRIVATE int sqlite3SectorSize(sqlite3_file *);
10729 SQLITE_PRIVATE int sqlite3OsClose(sqlite3_file*);
10730 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
10731 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
10732 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
10733 SQLITE_PRIVATE int sqlite3OsSync(sqlite3_file*, int);
10734 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
10735 SQLITE_PRIVATE int sqlite3OsLock(sqlite3_file*, int);
10736 SQLITE_PRIVATE int sqlite3OsUnlock(sqlite3_file*, int);
10737 SQLITE_PRIVATE int sqlite3OsCheckReservedLock(sqlite3_file *id, int *pResOut);
10738 SQLITE_PRIVATE int sqlite3OsFileControl(sqlite3_file*,int,void*);
10739 SQLITE_PRIVATE void sqlite3OsFileControlHint(sqlite3_file*,int,void*);
10741 SQLITE_PRIVATE int sqlite3OsSectorSize(sqlite3_file *id);
10742 SQLITE_PRIVATE int sqlite3OsDeviceCharacteristics(sqlite3_file *id);
10743 SQLITE_PRIVATE int sqlite3OsShmMap(sqlite3_file *,int,int,int,void volatile **);
10744 SQLITE_PRIVATE int sqlite3OsShmLock(sqlite3_file *id, int, int, int);
10745 SQLITE_PRIVATE void sqlite3OsShmBarrier(sqlite3_file *id);
10746 SQLITE_PRIVATE int sqlite3OsShmUnmap(sqlite3_file *id, int);
10747 SQLITE_PRIVATE int sqlite3OsFetch(sqlite3_file *id, i64, int, void **);
10748 SQLITE_PRIVATE int sqlite3OsUnfetch(sqlite3_file *, i64, void *);
10754 SQLITE_PRIVATE int sqlite3OsOpen(sqlite3_vfs *, const char *, sqlite3_file*, int, int *);
10772 SQLITE_PRIVATE int sqlite3OsOpenMalloc(sqlite3_vfs *, const char *, sqlite3_file **, int,int*);
10773 SQLITE_PRIVATE int sqlite3OsCloseFree(sqlite3_file *);
13683 SQLITE_PRIVATE int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int);
13685 SQLITE_PRIVATE int sqlite3JournalCreate(sqlite3_file *);
13686 SQLITE_PRIVATE int sqlite3JournalExists(sqlite3_file *p);
13692 SQLITE_PRIVATE void sqlite3MemJournalOpen(sqlite3_file *);
13694 SQLITE_PRIVATE int sqlite3IsMemJournal(sqlite3_file *);
16527 SQLITE_PRIVATE int sqlite3OsClose(sqlite3_file *pId){ in sqlite3OsClose()
16535 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead()
16539 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite()
16543 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){ in sqlite3OsTruncate()
16546 SQLITE_PRIVATE int sqlite3OsSync(sqlite3_file *id, int flags){ in sqlite3OsSync()
16550 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){ in sqlite3OsFileSize()
16554 SQLITE_PRIVATE int sqlite3OsLock(sqlite3_file *id, int lockType){ in sqlite3OsLock()
16558 SQLITE_PRIVATE int sqlite3OsUnlock(sqlite3_file *id, int lockType){ in sqlite3OsUnlock()
16561 SQLITE_PRIVATE int sqlite3OsCheckReservedLock(sqlite3_file *id, int *pResOut){ in sqlite3OsCheckReservedLock()
16574 SQLITE_PRIVATE int sqlite3OsFileControl(sqlite3_file *id, int op, void *pArg){ in sqlite3OsFileControl()
16592 SQLITE_PRIVATE void sqlite3OsFileControlHint(sqlite3_file *id, int op, void *pArg){ in sqlite3OsFileControlHint()
16596 SQLITE_PRIVATE int sqlite3OsSectorSize(sqlite3_file *id){ in sqlite3OsSectorSize()
16597 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize; in sqlite3OsSectorSize()
16600 SQLITE_PRIVATE int sqlite3OsDeviceCharacteristics(sqlite3_file *id){ in sqlite3OsDeviceCharacteristics()
16603 SQLITE_PRIVATE int sqlite3OsShmLock(sqlite3_file *id, int offset, int n, int flags){ in sqlite3OsShmLock()
16606 SQLITE_PRIVATE void sqlite3OsShmBarrier(sqlite3_file *id){ in sqlite3OsShmBarrier()
16609 SQLITE_PRIVATE int sqlite3OsShmUnmap(sqlite3_file *id, int deleteFlag){ in sqlite3OsShmUnmap()
16613 sqlite3_file *id, /* Database file handle */ in sqlite3OsShmMap()
16625 SQLITE_PRIVATE int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){ in sqlite3OsFetch()
16629 SQLITE_PRIVATE int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){ in sqlite3OsUnfetch()
16634 SQLITE_PRIVATE int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){ in sqlite3OsFetch()
16638 SQLITE_PRIVATE int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){ in sqlite3OsUnfetch()
16650 sqlite3_file *pFile, in sqlite3OsOpen()
16729 sqlite3_file **ppFile, in sqlite3OsOpenMalloc()
16734 sqlite3_file *pFile; in sqlite3OsOpenMalloc()
16735 pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile); in sqlite3OsOpenMalloc()
16746 SQLITE_PRIVATE int sqlite3OsCloseFree(sqlite3_file *pFile){ in sqlite3OsCloseFree()
26834 static int unixCheckReservedLock(sqlite3_file *id, int *pResOut){
26945 static int unixLock(sqlite3_file *id, int eFileLock){
27193 static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock){
27357 static int unixUnlock(sqlite3_file *id, int eFileLock){
27379 static int closeUnixFile(sqlite3_file *id){
27414 static int unixClose(sqlite3_file *id){
27459 static int nolockCheckReservedLock(sqlite3_file *NotUsed, int *pResOut){
27464 static int nolockLock(sqlite3_file *NotUsed, int NotUsed2){
27468 static int nolockUnlock(sqlite3_file *NotUsed, int NotUsed2){
27476 static int nolockClose(sqlite3_file *id) {
27521 static int dotlockCheckReservedLock(sqlite3_file *id, int *pResOut) {
27572 static int dotlockLock(sqlite3_file *id, int eFileLock) {
27622 static int dotlockUnlock(sqlite3_file *id, int eFileLock) {
27667 static int dotlockClose(sqlite3_file *id) {
27716 static int flockCheckReservedLock(sqlite3_file *id, int *pResOut){
27798 static int flockLock(sqlite3_file *id, int eFileLock) {
27842 static int flockUnlock(sqlite3_file *id, int eFileLock) {
27876 static int flockClose(sqlite3_file *id) {
27908 static int semXCheckReservedLock(sqlite3_file *id, int *pResOut) {
27975 static int semXLock(sqlite3_file *id, int eFileLock) {
28008 static int semXUnlock(sqlite3_file *id, int eFileLock) {
28045 static int semXClose(sqlite3_file *id) {
28150 static int afpCheckReservedLock(sqlite3_file *id, int *pResOut){
28220 static int afpLock(sqlite3_file *id, int eFileLock){
28402 static int afpUnlock(sqlite3_file *id, int eFileLock) {
28505 static int afpClose(sqlite3_file *id) {
28548 static int nfsUnlock(sqlite3_file *id, int eFileLock){
28639 sqlite3_file *id,
28753 sqlite3_file *id,
29011 static int unixSync(sqlite3_file *id, int flags){
29060 static int unixTruncate(sqlite3_file *id, i64 nByte){
29110 static int unixFileSize(sqlite3_file *id, i64 *pSize){
29139 static int proxyFileControl(sqlite3_file*,int,void*);
29237 static int unixFileControl(sqlite3_file *id, int op, void *pArg){
29337 static int unixSectorSize(sqlite3_file *NotUsed){
29349 static int unixSectorSize(sqlite3_file *id){
29436 static int unixDeviceCharacteristics(sqlite3_file *id){
29856 sqlite3_file *fd, /* Handle open on database file */
29993 sqlite3_file *fd, /* Database file holding the shared memory */
30105 sqlite3_file *fd /* Database file holding the shared memory */
30120 sqlite3_file *fd, /* The underlying database file */
30333 static int unixFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){
30364 static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
30546 static int proxyClose(sqlite3_file*);
30547 static int proxyLock(sqlite3_file*, int);
30548 static int proxyUnlock(sqlite3_file*, int);
30549 static int proxyCheckReservedLock(sqlite3_file*, int*);
30697 sqlite3_file *pId, /* Write to the unixFile structure here */
31118 sqlite3_file *pFile, /* The file descriptor to be filled in */
32041 rc = fillInUnixFile(&dummyVfs, fd, (sqlite3_file*)pNew, path, 0);
32177 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType);
32228 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, SHARED_LOCK);
32231 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType);
32371 rc = unixWrite((sqlite3_file *)conchFile, writeBuffer, writeSize, 0);
32404 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, SHARED_LOCK);
32455 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK);
32479 rc = conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK);
32553 rc=lockProxy->pMethod->xClose((sqlite3_file *)lockProxy);
32672 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile);
32689 static int proxyFileControl(sqlite3_file *id, int op, void *pArg){
32762 static int proxyCheckReservedLock(sqlite3_file *id, int *pResOut) {
32769 return proxy->pMethod->xCheckReservedLock((sqlite3_file*)proxy, pResOut);
32801 static int proxyLock(sqlite3_file *id, int eFileLock) {
32808 rc = proxy->pMethod->xLock((sqlite3_file*)proxy, eFileLock);
32825 static int proxyUnlock(sqlite3_file *id, int eFileLock) {
32832 rc = proxy->pMethod->xUnlock((sqlite3_file*)proxy, eFileLock);
32844 static int proxyClose(sqlite3_file *id) {
32853 rc = lockProxy->pMethod->xUnlock((sqlite3_file*)lockProxy, NO_LOCK);
32855 rc = lockProxy->pMethod->xClose((sqlite3_file*)lockProxy);
32865 rc = conchFile->pMethod->xClose((sqlite3_file*)conchFile);
35663 static int winClose(sqlite3_file *id){
35715 sqlite3_file *id, /* File to read from */
35795 sqlite3_file *id, /* File to write into */
35903 static int winTruncate(sqlite3_file *id, sqlite3_int64 nByte){
35960 static int winSync(sqlite3_file *id, int flags){
36045 static int winFileSize(sqlite3_file *id, sqlite3_int64 *pSize){
36205 static int winLock(sqlite3_file *id, int locktype){
36343 static int winCheckReservedLock(sqlite3_file *id, int *pResOut){
36379 static int winUnlock(sqlite3_file *id, int locktype){
36436 static int winFileControl(sqlite3_file *id, int op, void *pArg){
36557 static int winSectorSize(sqlite3_file *id){
36565 static int winDeviceCharacteristics(sqlite3_file *id){
36732 static int winOpen(sqlite3_vfs*,const char*,sqlite3_file*,int,int*);
36764 winClose((sqlite3_file *)&p->hFile);
36841 (sqlite3_file*)&pShmNode->hFile, /* File handle here */
36852 rc = winTruncate((sqlite3_file *)&pShmNode->hFile, 0);
36902 sqlite3_file *fd, /* Database holding shared memory */
36943 sqlite3_file *fd, /* Database file holding the shared memory */
37052 sqlite3_file *fd /* Database holding the shared memory */
37080 sqlite3_file *fd, /* Handle open on database file */
37112 rc = winFileSize((sqlite3_file *)&pShmNode->hFile, &sz);
37127 rc = winTruncate((sqlite3_file *)&pShmNode->hFile, nByte);
37280 rc = winFileSize((sqlite3_file*)pFd, &nMap);
37366 static int winFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){
37407 static int winUnfetch(sqlite3_file *fd, i64 iOff, void *p){
37806 sqlite3_file *id, /* Write the SQLite file handle here */
41570 SQLITE_PRIVATE int sqlite3WalOpen(sqlite3_vfs*, sqlite3_file*, const char *, int, i64, Wal**);
42290 sqlite3_file *fd; /* File descriptor for database */
42291 sqlite3_file *jfd; /* File descriptor for main journal */
42292 sqlite3_file *sjfd; /* File descriptor for sub-journal */
42685 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
42704 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
42869 static int readMasterJournal(sqlite3_file *pJrnl, char *zMaster, u32 nMaster){
43795 sqlite3_file *jfd; /* The file descriptor for the journal file */
44051 sqlite3_file *pMaster; /* Malloc'd master-journal file descriptor */
44052 sqlite3_file *pJournal; /* Malloc'd child-journal file descriptor */
44062 pMaster = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile * 2);
44063 pJournal = (sqlite3_file *)(((u8 *)pMaster) + pVfs->szOsFile);
44194 SQLITE_PRIVATE int sqlite3SectorSize(sqlite3_file *pFile){
45020 sqlite3_file *fd = pPager->fd;
45151 sqlite3_file *pFile, /* Write the file descriptor here */
46270 pPager->fd = (sqlite3_file*)(pPtr += ROUND8(pcacheSize));
46271 pPager->sjfd = (sqlite3_file*)(pPtr += ROUND8(pVfs->szOsFile));
46272 pPager->jfd = (sqlite3_file*)(pPtr += journalFileSize);
48269 SQLITE_PRIVATE sqlite3_file *sqlite3PagerFile(Pager *pPager){
49315 sqlite3_file *pDbFd; /* File handle for the database file */
49316 sqlite3_file *pWalFd; /* File handle for WAL file */
50158 sqlite3_file *pDbFd, /* The open database file */
50191 pRet->pWalFd = (sqlite3_file *)&pRet[1];
51603 sqlite3_file *pFd; /* The WAL file to which we write */
57368 sqlite3_file *fd;
62628 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
62798 sqlite3_file * const pFile = sqlite3PagerFile(pDestPager);
63038 sqlite3_file *pFd; /* File descriptor for database pTo */
66824 sqlite3_file *pMaster = 0;
78072 sqlite3_file *pFd; /* File handle */
78253 sqlite3_file *pFd; /* File handle we are reading from */
78319 sqlite3_file *pFd; /* File handle to write to */
78514 sqlite3_file *pFd = pFile->pFd;
79169 static void vdbeSorterExtendFile(sqlite3 *db, sqlite3_file *pFd, i64 nByte){
79191 sqlite3_file **ppFd
79339 sqlite3_file *pFd, /* File handle to write to */
80667 sqlite3_file *pReal; /* The "real" underlying file descriptor */
80679 sqlite3_file *pReal = (sqlite3_file *)&p[1];
80703 static int jrnlClose(sqlite3_file *pJfd){
80716 sqlite3_file *pJfd, /* The journal file from which to read */
80737 sqlite3_file *pJfd, /* The journal file into which to write */
80763 static int jrnlTruncate(sqlite3_file *pJfd, sqlite_int64 size){
80777 static int jrnlSync(sqlite3_file *pJfd, int flags){
80791 static int jrnlFileSize(sqlite3_file *pJfd, sqlite_int64 *pSize){
80831 sqlite3_file *pJfd, /* Preallocated, blank file handle */
80857 SQLITE_PRIVATE int sqlite3JournalCreate(sqlite3_file *p){
80870 SQLITE_PRIVATE int sqlite3JournalExists(sqlite3_file *p){
80950 sqlite3_file *pJfd, /* The journal file from which to read */
80995 sqlite3_file *pJfd, /* The journal file into which to write */
81044 static int memjrnlTruncate(sqlite3_file *pJfd, sqlite_int64 size){
81062 static int memjrnlClose(sqlite3_file *pJfd){
81076 static int memjrnlSync(sqlite3_file *NotUsed, int NotUsed2){
81084 static int memjrnlFileSize(sqlite3_file *pJfd, sqlite_int64 *pSize){
81118 SQLITE_PRIVATE void sqlite3MemJournalOpen(sqlite3_file *pJfd){
81129 SQLITE_PRIVATE int sqlite3IsMemJournal(sqlite3_file *pJfd){
104491 sqlite3_file *pFile = sqlite3PagerFile(pPager);
104504 sqlite3_file *pFile = sqlite3PagerFile(pPager);
131323 sqlite3_file *fd;
131330 *(sqlite3_file**)pArg = fd;
155618 sqlite3_file *fd;