Home
last modified time | relevance | path

Searched refs:pFile (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dos_win.c359 static BOOL winceCreateLock(const char *zFilename, winFile *pFile){ in winceCreateLock() argument
365 ZeroMemory(&pFile->local, sizeof(pFile->local)); in winceCreateLock()
375 pFile->hMutex = CreateMutexW(NULL, FALSE, zName); in winceCreateLock()
376 if (!pFile->hMutex){ in winceCreateLock()
377 pFile->lastErrno = GetLastError(); in winceCreateLock()
383 winceMutexAcquire(pFile->hMutex); in winceCreateLock()
390 pFile->hShared = CreateFileMappingW(INVALID_HANDLE_VALUE, NULL, in winceCreateLock()
403 if (pFile->hShared){ in winceCreateLock()
404 pFile->shared = (winceLock*)MapViewOfFile(pFile->hShared, in winceCreateLock()
407 if (!pFile->shared){ in winceCreateLock()
[all …]
Dos_unix.c1042 static void robust_close(unixFile *pFile, int h, int lineno){ in robust_close() argument
1045 pFile ? pFile->zPath : 0, lineno); in robust_close()
1052 static void closePendingFds(unixFile *pFile){ in closePendingFds() argument
1053 unixInodeInfo *pInode = pFile->pInode; in closePendingFds()
1058 robust_close(pFile, p->fd, __LINE__); in closePendingFds()
1070 static void releaseInodeInfo(unixFile *pFile){ in releaseInodeInfo() argument
1071 unixInodeInfo *pInode = pFile->pInode; in releaseInodeInfo()
1077 closePendingFds(pFile); in releaseInodeInfo()
1105 unixFile *pFile, /* Unix file with file desc used in the key */ in findInodeInfo() argument
1119 fd = pFile->h; in findInodeInfo()
[all …]
Dtest_devsym.c134 static int devsymClose(sqlite3_file *pFile){ in devsymClose() argument
135 devsym_file *p = (devsym_file *)pFile; in devsymClose()
143 sqlite3_file *pFile, in devsymRead() argument
148 devsym_file *p = (devsym_file *)pFile; in devsymRead()
156 sqlite3_file *pFile, in devsymWrite() argument
161 devsym_file *p = (devsym_file *)pFile; in devsymWrite()
168 static int devsymTruncate(sqlite3_file *pFile, sqlite_int64 size){ in devsymTruncate() argument
169 devsym_file *p = (devsym_file *)pFile; in devsymTruncate()
176 static int devsymSync(sqlite3_file *pFile, int flags){ in devsymSync() argument
177 devsym_file *p = (devsym_file *)pFile; in devsymSync()
[all …]
Dos_os2.c97 os2File *pFile = (os2File*)id; in os2Close() local
100 OSTRACE(( "CLOSE %d (%s)\n", pFile->h, pFile->zFullPathCp )); in os2Close()
102 rc = DosClose( pFile->h ); in os2Close()
104 if( pFile->flags & SQLITE_OPEN_DELETEONCLOSE ) in os2Close()
105 DosForceDelete( (PSZ)pFile->zFullPathCp ); in os2Close()
107 free( pFile->zFullPathCp ); in os2Close()
108 pFile->zFullPathCp = NULL; in os2Close()
109 pFile->locktype = NO_LOCK; in os2Close()
110 pFile->h = (HFILE)-1; in os2Close()
111 pFile->flags = 0; in os2Close()
[all …]
Dtest_quota.c109 quotaFile *pFile; /* The underlying file */ member
296 quotaFile *pFile; /* Corresponding quotaFile obj */ in quotaOpen() local
322 for(pFile=pGroup->pFiles; pFile && strcmp(pFile->zFilename, zName); in quotaOpen()
323 pFile=pFile->pNext){} in quotaOpen()
324 if( pFile==0 ){ in quotaOpen()
326 pFile = sqlite3_malloc( sizeof(*pFile) + nName + 1 ); in quotaOpen()
327 if( pFile==0 ){ in quotaOpen()
332 memset(pFile, 0, sizeof(*pFile)); in quotaOpen()
333 pFile->zFilename = (char*)&pFile[1]; in quotaOpen()
334 memcpy(pFile->zFilename, zName, nName+1); in quotaOpen()
[all …]
Dtest6.c121 CrashFile *pFile; /* File this write() applies to */ member
189 static int writeListSync(CrashFile *pFile, int isCrash){ in writeListSync() argument
206 if( pWrite->pFile==pFile ){ in writeListSync()
221 printf("Sync %s (is %s crash)\n", pFile->zName, (isCrash?"a":"not a")); in writeListSync()
226 sqlite3_file *pRealFile = pWrite->pFile->pRealFile; in writeListSync()
235 if( (pWrite->pFile==pFile || iDc&SQLITE_IOCAP_SEQUENTIAL) ){ in writeListSync()
280 pWrite->pFile, pWrite->zBuf, pWrite->nBuf, pWrite->iOffset in writeListSync()
289 pWrite->nBuf, (int)pWrite->iOffset, pWrite->pFile->zName in writeListSync()
301 pWrite->nBuf, (int)pWrite->iOffset, pWrite->pFile->zName in writeListSync()
316 1+iLast-iFirst, iFirst, pWrite->pFile->zName in writeListSync()
[all …]
Dtest_onefile.c99 sqlite3_file *pFile; member
257 static int tmpClose(sqlite3_file *pFile){ in tmpClose() argument
258 tmp_file *pTmp = (tmp_file *)pFile; in tmpClose()
267 sqlite3_file *pFile, in tmpRead() argument
272 tmp_file *pTmp = (tmp_file *)pFile; in tmpRead()
284 sqlite3_file *pFile, in tmpWrite() argument
289 tmp_file *pTmp = (tmp_file *)pFile; in tmpWrite()
307 static int tmpTruncate(sqlite3_file *pFile, sqlite_int64 size){ in tmpTruncate() argument
308 tmp_file *pTmp = (tmp_file *)pFile; in tmpTruncate()
316 static int tmpSync(sqlite3_file *pFile, int flags){ in tmpSync() argument
[all …]
Dtest_demovfs.c201 static int demoClose(sqlite3_file *pFile){ in demoClose() argument
203 DemoFile *p = (DemoFile*)pFile; in demoClose()
214 sqlite3_file *pFile, in demoRead() argument
219 DemoFile *p = (DemoFile*)pFile; in demoRead()
254 sqlite3_file *pFile, in demoWrite() argument
259 DemoFile *p = (DemoFile*)pFile; in demoWrite()
305 static int demoTruncate(sqlite3_file *pFile, sqlite_int64 size){ in demoTruncate() argument
307 if( ftruncate(((DemoFile *)pFile)->fd, size) ) return SQLITE_IOERR_TRUNCATE; in demoTruncate()
315 static int demoSync(sqlite3_file *pFile, int flags){ in demoSync() argument
316 DemoFile *p = (DemoFile*)pFile; in demoSync()
[all …]
Dtest_journal.c250 static int jtClose(sqlite3_file *pFile){ in jtClose() argument
252 jt_file *p = (jt_file *)pFile; in jtClose()
268 sqlite3_file *pFile, in jtRead() argument
273 jt_file *p = (jt_file *)pFile; in jtRead()
509 sqlite3_file *pFile, in jtWrite() argument
515 jt_file *p = (jt_file *)pFile; in jtWrite()
572 static int jtTruncate(sqlite3_file *pFile, sqlite_int64 size){ in jtTruncate() argument
573 jt_file *p = (jt_file *)pFile; in jtTruncate()
592 static int jtSync(sqlite3_file *pFile, int flags){ in jtSync() argument
593 jt_file *p = (jt_file *)pFile; in jtSync()
[all …]
Dtest_vfstrace.c192 static int vfstraceClose(sqlite3_file *pFile){ in vfstraceClose() argument
193 vfstrace_file *p = (vfstrace_file *)pFile; in vfstraceClose()
210 sqlite3_file *pFile, in vfstraceRead() argument
215 vfstrace_file *p = (vfstrace_file *)pFile; in vfstraceRead()
229 sqlite3_file *pFile, in vfstraceWrite() argument
234 vfstrace_file *p = (vfstrace_file *)pFile; in vfstraceWrite()
247 static int vfstraceTruncate(sqlite3_file *pFile, sqlite_int64 size){ in vfstraceTruncate() argument
248 vfstrace_file *p = (vfstrace_file *)pFile; in vfstraceTruncate()
261 static int vfstraceSync(sqlite3_file *pFile, int flags){ in vfstraceSync() argument
262 vfstrace_file *p = (vfstrace_file *)pFile; in vfstraceSync()
[all …]
Dtest_vfs.c48 #define tvfsGetFd(pFile) (((TestvfsFile *)pFile)->pFd) argument
144 TestvfsFd *pFile; /* List of open handles */ member
320 static int tvfsClose(sqlite3_file *pFile){ in tvfsClose() argument
322 TestvfsFile *pTestfile = (TestvfsFile *)pFile; in tvfsClose()
336 if( pFile->pMethods ){ in tvfsClose()
337 ckfree((char *)pFile->pMethods); in tvfsClose()
349 sqlite3_file *pFile, in tvfsRead() argument
354 TestvfsFd *p = tvfsGetFd(pFile); in tvfsRead()
362 sqlite3_file *pFile, in tvfsWrite() argument
368 TestvfsFd *pFd = tvfsGetFd(pFile); in tvfsWrite()
[all …]
Dos.c129 sqlite3_file *pFile, in sqlite3OsOpen() argument
139 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x87f3f, pFlagsOut); in sqlite3OsOpen()
140 assert( rc==SQLITE_OK || pFile->pMethods==0 ); in sqlite3OsOpen()
210 sqlite3_file *pFile; in sqlite3OsOpenMalloc() local
211 pFile = (sqlite3_file *)sqlite3Malloc(pVfs->szOsFile); in sqlite3OsOpenMalloc()
212 if( pFile ){ in sqlite3OsOpenMalloc()
213 rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags); in sqlite3OsOpenMalloc()
215 sqlite3_free(pFile); in sqlite3OsOpenMalloc()
217 *ppFile = pFile; in sqlite3OsOpenMalloc()
222 int sqlite3OsCloseFree(sqlite3_file *pFile){ in sqlite3OsCloseFree() argument
[all …]
Dtest_osinst.c151 static int vfslogShmLock(sqlite3_file *pFile, int ofst, int n, int flags);
152 static int vfslogShmMap(sqlite3_file *pFile,int,int,int,volatile void **);
154 static int vfslogShmUnmap(sqlite3_file *pFile, int deleteFlag);
251 static int vfslogClose(sqlite3_file *pFile){ in vfslogClose() argument
254 VfslogFile *p = (VfslogFile *)pFile; in vfslogClose()
269 sqlite3_file *pFile, in vfslogRead() argument
276 VfslogFile *p = (VfslogFile *)pFile; in vfslogRead()
288 sqlite3_file *pFile, in vfslogWrite() argument
295 VfslogFile *p = (VfslogFile *)pFile; in vfslogWrite()
306 static int vfslogTruncate(sqlite3_file *pFile, sqlite_int64 size){ in vfslogTruncate() argument
[all …]
Dbackup.c301 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){ in backupTruncateFile() argument
303 int rc = sqlite3OsFileSize(pFile, &iCurrent); in backupTruncateFile()
305 rc = sqlite3OsTruncate(pFile, iSize); in backupTruncateFile()
458 sqlite3_file * const pFile = sqlite3PagerFile(pDestPager); in sqlite3_backup_step() local
462 assert( pFile ); in sqlite3_backup_step()
488 rc = sqlite3OsWrite(pFile, zData, pgszSrc, iOff); in sqlite3_backup_step()
493 rc = backupTruncateFile(pFile, iSize); in sqlite3_backup_step()
/external/sonivox/arm-wt-22k/misc/
Deas_host.c87 FILE *pFile; member
231 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
237 *pFile = NULL; in EAS_HWOpenFile()
248 if (file->pFile == NULL) in EAS_HWOpenFile()
252 file->pFile = fopen((const char*) locator->path, "rb"); in EAS_HWOpenFile()
253 if (file->pFile == NULL) in EAS_HWOpenFile()
266 *pFile = file; in EAS_HWOpenFile()
287 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
291 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
316 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/
DEASLibVst.c71 FILE *pFile; member
497 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
503 *pFile = NULL; in EAS_HWOpenFile()
514 if (file->pFile == NULL) in EAS_HWOpenFile()
519 file->pFile = fopen((const char*) locator, "rb"); in EAS_HWOpenFile()
520 if (file->pFile == NULL) in EAS_HWOpenFile()
540 *pFile = file; in EAS_HWOpenFile()
561 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
565 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
590 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
DEASLib.c73 FILE *pFile; member
802 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
808 *pFile = NULL; in EAS_HWOpenFile()
819 if (file->pFile == NULL) in EAS_HWOpenFile()
824 file->pFile = fopen((const char*) locator, "rb"); in EAS_HWOpenFile()
825 if (file->pFile == NULL) in EAS_HWOpenFile()
845 *pFile = file; in EAS_HWOpenFile()
866 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
870 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
895 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
/external/chromium_org/third_party/sqlite/
Dsystem-sqlite.patch58 unixFile *pFile = (unixFile*)id;
59 - if( pFile->dirfd>=0 ){
60 - robust_close(pFile, pFile->dirfd, __LINE__);
61 - pFile->dirfd=-1;
63 if( pFile->h>=0 ){
64 robust_close(pFile, pFile->h, __LINE__);
65 pFile->h = -1;
68 if( pFile->pId ){
69 if( pFile->isDelete ){
70 - unlink(pFile->pId->zCanonicalName);
[all …]
Dwebdb.patch78 +** Marks 'fd' as the unused file descriptor for 'pFile'.
91 +** Destroys pFile's field that keeps track of the unused file descriptor.
107 + chromium_sqlite3_initialize_unix_sqlite3_file(pFile);
119 + rc = chromium_sqlite3_get_reusable_file_handle(pFile, zName, flags, &fd);
135 + chromium_sqlite3_update_reusable_file_handle(pFile, fd, flags);
140 rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock, isDelete);
144 + chromium_sqlite3_destroy_reusable_file_handle(pFile);
/external/chromium_org/third_party/sqlite/src/ext/async/
Dsqlite3async.c486 sqlite3_file *pFile; member
627 static int asyncClose(sqlite3_file *pFile){ in asyncClose() argument
628 AsyncFileData *p = ((AsyncFile *)pFile)->pData; in asyncClose()
646 sqlite3_file *pFile, in asyncWrite() argument
651 AsyncFileData *p = ((AsyncFile *)pFile)->pData; in asyncWrite()
663 sqlite3_file *pFile, in asyncRead() argument
668 AsyncFileData *p = ((AsyncFile *)pFile)->pData; in asyncRead()
743 static int asyncTruncate(sqlite3_file *pFile, sqlite3_int64 nByte){ in asyncTruncate() argument
744 AsyncFileData *p = ((AsyncFile *)pFile)->pData; in asyncTruncate()
752 static int asyncSync(sqlite3_file *pFile, int flags){ in asyncSync() argument
[all …]
/external/svox/pico/tts/
Dcom_svox_picottsengine.cpp254 FILE * pFile; in hasResourcesForLanguage() local
260 pFile = fopen(fileName, "r"); in hasResourcesForLanguage()
261 if (pFile != NULL) { in hasResourcesForLanguage()
263 fclose (pFile); in hasResourcesForLanguage()
267 pFile = fopen(fileName, "r"); in hasResourcesForLanguage()
268 if (pFile != NULL) { in hasResourcesForLanguage()
270 fclose(pFile); in hasResourcesForLanguage()
280 pFile = fopen(fileName, "r"); in hasResourcesForLanguage()
281 if (pFile == NULL) { in hasResourcesForLanguage()
285 fclose (pFile); in hasResourcesForLanguage()
[all …]
/external/chromium_org/third_party/zlib/contrib/minizip/
Dminizip.c214 FILE* pFile = fopen64(filename, "rb"); in isLargeFile() local
216 if(pFile != NULL) in isLargeFile()
218 int n = fseeko64(pFile, 0, SEEK_END); in isLargeFile()
220 pos = ftello64(pFile); in isLargeFile()
227 fclose(pFile); in isLargeFile()
/external/zlib/src/contrib/minizip/
Dminizip.c228 FILE* pFile = FOPEN_FUNC(filename, "rb"); in isLargeFile() local
230 if(pFile != NULL) in isLargeFile()
232 int n = FSEEKO_FUNC(pFile, 0, SEEK_END); in isLargeFile()
233 pos = FTELLO_FUNC(pFile); in isLargeFile()
240 fclose(pFile); in isLargeFile()
/external/sonivox/arm-hybrid-22k/host_src/
Deas_host.h59 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod…
68 …SULT EAS_HWDupHandle (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE file, EAS_FILE_HANDLE* pFile);
/external/sonivox/arm-fm-22k/host_src/
Deas_host.h59 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod…
68 …SULT EAS_HWDupHandle (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE file, EAS_FILE_HANDLE* pFile);

12