Home
last modified time | relevance | path

Searched refs:nBuf (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dtest_syscall.c101 static int ts_read(int fd, void *aBuf, size_t nBuf);
102 static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off);
103 static int ts_pread64(int fd, void *aBuf, size_t nBuf, off_t off);
104 static int ts_write(int fd, const void *aBuf, size_t nBuf);
105 static int ts_pwrite(int fd, const void *aBuf, size_t nBuf, off_t off);
106 static int ts_pwrite64(int fd, const void *aBuf, size_t nBuf, off_t off);
296 static int ts_read(int fd, void *aBuf, size_t nBuf){ in ts_read() argument
300 return orig_read(fd, aBuf, nBuf); in ts_read()
306 static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off){ in ts_pread() argument
310 return orig_pread(fd, aBuf, nBuf, off); in ts_pread()
[all …]
Djournal.c37 int nBuf; /* Size of zBuf[] in bytes */ member
59 assert(p->iSize<=p->nBuf); in createFile()
111 if( !p->pReal && (iOfst+iAmt)>p->nBuf ){ in jrnlWrite()
200 int nBuf /* Bytes buffered before opening the file */ in sqlite3JournalOpen() argument
204 if( nBuf>0 ){ in sqlite3JournalOpen()
205 p->zBuf = sqlite3MallocZero(nBuf); in sqlite3JournalOpen()
213 p->nBuf = nBuf; in sqlite3JournalOpen()
Dtest6.c119 int nBuf; /* Number of bytes written */ member
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()
310 int iLast = (pWrite->iOffset+pWrite->nBuf-1)/g.iSectorSize; in writeListSync()
362 int nBuf in writeListAppend() argument
366 assert((zBuf && nBuf) || (!nBuf && !zBuf)); in writeListAppend()
368 pNew = (WriteBuffer *)crash_malloc(sizeof(WriteBuffer) + nBuf); in writeListAppend()
372 memset(pNew, 0, sizeof(WriteBuffer)+nBuf); in writeListAppend()
374 pNew->nBuf = nBuf; in writeListAppend()
[all …]
Dtest_osinst.c120 int nBuf; /* Number of valid bytes in aBuf[] */ member
623 if( p->nBuf ){ in vfslog_flush()
624 p->pLog->pMethods->xWrite(p->pLog, p->aBuf, p->nBuf, p->iOffset); in vfslog_flush()
625 p->iOffset += p->nBuf; in vfslog_flush()
626 p->nBuf = 0; in vfslog_flush()
654 if( (24+p->nBuf)>sizeof(p->aBuf) ){ in vfslog_call()
657 zRec = (unsigned char *)&p->aBuf[p->nBuf]; in vfslog_call()
664 p->nBuf += 24; in vfslog_call()
671 if( (4+nStr+p->nBuf)>sizeof(p->aBuf) ){ in vfslog_string()
674 zRec = (unsigned char *)&p->aBuf[p->nBuf]; in vfslog_string()
[all …]
Dos_win.c1906 static int getTempname(int nBuf, char *zBuf){ in getTempname() argument
1955 if( (sqlite3Strlen30(zTempPath) + sqlite3Strlen30(SQLITE_TEMP_FILE_PREFIX) + 17) >= nBuf ){ in getTempname()
1962 sqlite3_snprintf(nBuf-17, zBuf, in getTempname()
1980 static int getLastErrorMsg(int nBuf, char *zBuf){ in getLastErrorMsg() argument
2027 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%x (%u)", error, error); in getLastErrorMsg()
2030 sqlite3_snprintf(nBuf, zBuf, "%s", zOut); in getLastErrorMsg()
2564 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){ in winDlError() argument
2566 getLastErrorMsg(nBuf, zBufOut); in winDlError()
2594 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ in winRandomness() argument
2598 n = nBuf; in winRandomness()
[all …]
Dtest_fuzzer.c180 int nBuf; /* Bytes allocated for zBuf */ member
401 int nBuf = 0;
402 if( fuzzerRender(pStem, &zBuf, &nBuf)!=SQLITE_OK ) return;
422 if( fuzzerRender(pStem, &pCur->zBuf, &pCur->nBuf)==SQLITE_NOMEM ){ in fuzzerSeen()
609 rc = fuzzerRender(pStem, &pCur->zBuf, &pCur->nBuf); in fuzzerNext()
703 if( fuzzerRender(pCur->pStem, &pCur->zBuf, &pCur->nBuf)==SQLITE_NOMEM ){ in fuzzerColumn()
Dos_os2.c1375 static int getTempname(int nBuf, char *zBuf ){ argument
1418 sqlite3_snprintf(nBuf-22, zBuf,
1693 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){ argument
1724 static int os2Randomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf ){ argument
1727 n = nBuf;
1728 memset(zBuf, 0, nBuf);
1741 if( (int)sizeof(dt)-3 <= nBuf - n ){
1750 if( (int)sizeof(ULONG) <= nBuf - n ){
1758 for( i = 0; i < 6 && (int)sizeof(ULONG) <= nBuf - n; i++ ){
1880 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ argument
Dwal.h93 int nBuf, /* Size of buffer nBuf */
Dos_unix.c4694 static int unixGetTempname(int nBuf, char *zBuf){ in unixGetTempname() argument
4714 if( (strlen(zDir) + strlen(SQLITE_TEMP_FILE_PREFIX) + 17) >= (size_t)nBuf ){ in unixGetTempname()
4719 sqlite3_snprintf(nBuf-17, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX, zDir); in unixGetTempname()
5299 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){ in unixDlError() argument
5305 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr); in unixDlError()
5346 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){ in unixRandomness() argument
5348 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int))); in unixRandomness()
5362 memset(zBuf, 0, nBuf); in unixRandomness()
5373 assert( sizeof(t)+sizeof(pid)<=(size_t)nBuf ); in unixRandomness()
5374 nBuf = sizeof(t) + sizeof(pid); in unixRandomness()
[all …]
Dvdbeaux.c2647 u32 sqlite3VdbeSerialPut(u8 *buf, int nBuf, Mem *pMem, int file_format){ in sqlite3VdbeSerialPut() argument
2663 assert( len<=(u32)nBuf ); in sqlite3VdbeSerialPut()
2675 assert( pMem->n<=nBuf ); in sqlite3VdbeSerialPut()
2680 assert( nBuf>=0 ); in sqlite3VdbeSerialPut()
2681 if( len > (u32)nBuf ){ in sqlite3VdbeSerialPut()
2682 len = (u32)nBuf; in sqlite3VdbeSerialPut()
Dwal.c1769 int nBuf, in sqlite3WalClose() argument
1790 pWal, SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0 in sqlite3WalClose()
2738 int nBuf, /* Size of temporary buffer */ in sqlite3WalCheckpoint() argument
2786 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){ in sqlite3WalCheckpoint()
Dshell.c2573 int nBuf; in process_sqliterc() local
2584 nBuf = strlen30(home_dir) + 16; in process_sqliterc()
2585 zBuf = malloc( nBuf ); in process_sqliterc()
2590 sqlite3_snprintf(nBuf, zBuf,"%s/.sqliterc",home_dir); in process_sqliterc()
/external/valgrind/main/coregrind/
Dm_errormgr.c1064 SizeT nBuf = *nBufp; in VG_() local
1086 if (i > 0 && i == nBuf-1) { in VG_()
1087 *nBufp = nBuf = nBuf * 2; in VG_()
1089 vg_assert2(nBuf < RIDICULOUS, // Just a sanity check, really. in VG_()
1092 *bufpp = buf = VG_(realloc)("errormgr.get_line.1", buf, nBuf); in VG_()
1180 SizeT nBuf = 200; in load_one_suppressions_file() local
1181 Char* buf = VG_(malloc)("errormgr.losf.1", nBuf); in load_one_suppressions_file()
1223 eof = VG_(get_line) ( fd, &buf, &nBuf, &lineno ); in load_one_suppressions_file()
1231 eof = VG_(get_line) ( fd, &buf, &nBuf, &lineno ); in load_one_suppressions_file()
1237 eof = VG_(get_line) ( fd, &buf, &nBuf, &lineno ); in load_one_suppressions_file()
[all …]
/external/valgrind/main/exp-sgcheck/
Dpc_common.h60 /*OUT*/Char* buf, Int nBuf );
Dpc_common.c781 /*OUT*/Char* buf, Int nBuf ) in pc_get_extra_suppression_info() argument
785 tl_assert(nBuf >= 16); // stay sane in pc_get_extra_suppression_info()
789 VG_(snprintf)(buf, nBuf-1, "%s", errstr); in pc_get_extra_suppression_info()
/external/valgrind/main/helgrind/
Dhg_errors.h48 /*OUT*/Char* buf, Int nBuf );
Dlibhb_core.c1919 static void VTS__show ( HChar* buf, Int nBuf, VTS* vts );
2386 void VTS__show ( HChar* buf, Int nBuf, VTS* vts ) in VTS__show() argument
2391 Int avail = nBuf; in VTS__show()
2393 tl_assert(nBuf > 16); in VTS__show()
2405 buf[nBuf-1] = 0; in VTS__show()
2412 buf[nBuf-1] = 0; in VTS__show()
/external/bzip2/
Dbzip2.c299 Int32 nBuf = 0; in uInt64_toAscii() local
303 buf[nBuf] = q + '0'; in uInt64_toAscii()
304 nBuf++; in uInt64_toAscii()
306 outbuf[nBuf] = 0; in uInt64_toAscii()
307 for (i = 0; i < nBuf; i++) in uInt64_toAscii()
308 outbuf[i] = buf[nBuf-i-1]; in uInt64_toAscii()
/external/valgrind/main/memcheck/
Dmc_include.h378 SizeT* nBuf, Supp *su );
383 /*OUT*/Char* buf, Int nBuf );
Dmc_errors.c1562 /*OUT*/Char* buf, Int nBuf ) in MC_()
1566 tl_assert(nBuf >= 16); // stay sane in MC_()
1570 VG_(snprintf)(buf, nBuf-1, "%s", errstr); in MC_()
/external/valgrind/main/include/
Dpub_tool_tooliface.h345 /*OUT*/Char* buf, Int nBuf)
/external/sqlite/dist/
Dshell.c2689 int nBuf; in process_sqliterc() local
2700 nBuf = strlen30(home_dir) + 16; in process_sqliterc()
2701 zBuf = malloc( nBuf ); in process_sqliterc()
2706 sqlite3_snprintf(nBuf, zBuf,"%s/.sqliterc",home_dir); in process_sqliterc()
/external/sqlite/dist/orig/
Dshell.c2670 int nBuf; in process_sqliterc() local
2681 nBuf = strlen30(home_dir) + 16; in process_sqliterc()
2682 zBuf = malloc( nBuf ); in process_sqliterc()
2687 sqlite3_snprintf(nBuf, zBuf,"%s/.sqliterc",home_dir); in process_sqliterc()
/external/valgrind/main/drd/
Ddrd_error.c605 /*OUT*/Char* buf, Int nBuf) in drd_get_extra_suppression_info() argument
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_write.c2313 int nBuf /* size of the BLOB */ in fts3DecodeIntArray() argument
2316 UNUSED_PARAMETER(nBuf); in fts3DecodeIntArray()
2320 assert(j<=nBuf); in fts3DecodeIntArray()

12