Home
last modified time | relevance | path

Searched refs:zBuf (Results 1 – 25 of 74) sorted by relevance

123

/external/chromium_org/third_party/sqlite/src/src/
Dtest3.c68 char zBuf[100]; in btree_open() local
88 sqlite3_snprintf(sizeof(zBuf), zBuf,"%p", pBt); in btree_open()
89 Tcl_AppendResult(interp, zBuf, 0); in btree_open()
195 char zBuf[100]; in btree_pager_stats() local
197 sqlite3_snprintf(sizeof(zBuf), zBuf,"%d",a[i]); in btree_pager_stats()
198 Tcl_AppendElement(interp, zBuf); in btree_pager_stats()
223 char zBuf[30]; in btree_cursor() local
248 sqlite3_snprintf(sizeof(zBuf), zBuf,"%p", pCur); in btree_cursor()
249 Tcl_AppendResult(interp, zBuf, 0); in btree_cursor()
302 char zBuf[100]; in btree_next() local
[all …]
Dtest2.c79 char zBuf[100]; in pager_open() local
96 sqlite3_snprintf(sizeof(zBuf),zBuf,"%p",pPager); in pager_open()
97 Tcl_AppendResult(interp, zBuf, 0); in pager_open()
294 char zBuf[100]; in pager_stats() local
296 sqlite3_snprintf(sizeof(zBuf),zBuf,"%d",a[i]); in pager_stats()
297 Tcl_AppendElement(interp, zBuf); in pager_stats()
314 char zBuf[100]; in pager_pagecount() local
323 sqlite3_snprintf(sizeof(zBuf), zBuf, "%d", nPage); in pager_pagecount()
324 Tcl_AppendResult(interp, zBuf, 0); in pager_pagecount()
340 char zBuf[100]; in page_get() local
[all …]
Djournal.c38 char *zBuf; /* Space to buffer journal writes */ member
60 rc = sqlite3OsWrite(p->pReal, p->zBuf, p->iSize, 0); in createFile()
75 sqlite3_free(p->zBuf); in jrnlClose()
84 void *zBuf, /* Put the results here */ in jrnlRead() argument
91 rc = sqlite3OsRead(p->pReal, zBuf, iAmt, iOfst); in jrnlRead()
95 memcpy(zBuf, &p->zBuf[iOfst], iAmt); in jrnlRead()
105 const void *zBuf, /* Take data to be written from here */ in jrnlWrite() argument
116 rc = sqlite3OsWrite(p->pReal, zBuf, iAmt, iOfst); in jrnlWrite()
118 memcpy(&p->zBuf[iOfst], zBuf, iAmt); in jrnlWrite()
205 p->zBuf = sqlite3MallocZero(nBuf); in sqlite3JournalOpen()
[all …]
Dutf.c220 char zBuf[100]; in sqlite3VdbeMemTranslate() local
221 sqlite3VdbeMemPrettyPrint(pMem, zBuf); in sqlite3VdbeMemTranslate()
222 fprintf(stderr, "INPUT: %s\n", zBuf); in sqlite3VdbeMemTranslate()
331 char zBuf[100]; in sqlite3VdbeMemTranslate() local
332 sqlite3VdbeMemPrettyPrint(pMem, zBuf); in sqlite3VdbeMemTranslate()
333 fprintf(stderr, "OUTPUT: %s\n", zBuf); in sqlite3VdbeMemTranslate()
515 unsigned char zBuf[20]; in sqlite3UtfSelfTest() local
521 z = zBuf; in sqlite3UtfSelfTest()
523 n = (int)(z-zBuf); in sqlite3UtfSelfTest()
526 z = zBuf; in sqlite3UtfSelfTest()
[all …]
Dtest_hexio.c32 void sqlite3TestBinToHex(unsigned char *zBuf, int N){ in sqlite3TestBinToHex() argument
37 zBuf[i--] = 0; in sqlite3TestBinToHex()
39 c = zBuf[j]; in sqlite3TestBinToHex()
40 zBuf[i--] = zHex[c&0xf]; in sqlite3TestBinToHex()
41 zBuf[i--] = zHex[c>>4]; in sqlite3TestBinToHex()
106 unsigned char *zBuf; in hexio_read() local
116 zBuf = sqlite3_malloc( amt*2+1 ); in hexio_read()
117 if( zBuf==0 ){ in hexio_read()
129 got = fread(zBuf, 1, amt, in); in hexio_read()
134 sqlite3TestBinToHex(zBuf, got); in hexio_read()
[all …]
Dtest_vfstrace.c124 char zBuf[50]; in vfstrace_print_errcode() local
171 sqlite3_snprintf(sizeof(zBuf), zBuf, "%d", rc); in vfstrace_print_errcode()
172 zVal = zBuf; in vfstrace_print_errcode()
211 void *zBuf, in vfstraceRead() argument
220 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst); in vfstraceRead()
230 const void *zBuf, in vfstraceWrite() argument
239 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst); in vfstraceWrite()
266 char zBuf[100]; in vfstraceSync() local
267 memcpy(zBuf, "|0", 3); in vfstraceSync()
269 if( flags & SQLITE_SYNC_FULL ) strappend(zBuf, &i, "|FULL"); in vfstraceSync()
[all …]
Ddate.c510 char *z, zBuf[30]; in parseModifier() local
511 z = zBuf; in parseModifier()
512 for(n=0; n<ArraySize(zBuf)-1 && zMod[n]; n++){ in parseModifier()
776 char zBuf[100]; in datetimeFunc() local
778 sqlite3_snprintf(sizeof(zBuf), zBuf, "%04d-%02d-%02d %02d:%02d:%02d", in datetimeFunc()
780 sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); in datetimeFunc()
796 char zBuf[100]; in timeFunc() local
798 sqlite3_snprintf(sizeof(zBuf), zBuf, "%02d:%02d:%02d", x.h, x.m, (int)x.s); in timeFunc()
799 sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); in timeFunc()
815 char zBuf[100]; in dateFunc() local
[all …]
Dtest_journal.c269 void *zBuf, in jtRead() argument
274 return sqlite3OsRead(p->pReal, zBuf, iAmt, iOfst); in jtRead()
340 const unsigned char *zBuf, /* Input: 28 byte journal header */ in decodeJournalHdr() argument
347 if( memcmp(aMagic, zBuf, 8) ) return SQLITE_ERROR; in decodeJournalHdr()
348 if( pnRec ) *pnRec = decodeUint32(&zBuf[8]); in decodeJournalHdr()
349 if( pnPage ) *pnPage = decodeUint32(&zBuf[16]); in decodeJournalHdr()
350 if( pnSector ) *pnSector = decodeUint32(&zBuf[20]); in decodeJournalHdr()
351 if( pnPagesize ) *pnPagesize = decodeUint32(&zBuf[24]); in decodeJournalHdr()
431 unsigned char zBuf[28]; in readJournalFile() local
451 rc = sqlite3OsRead(pReal, zBuf, 28, iOff); in readJournalFile()
[all …]
Dtest6.c120 u8 *zBuf; /* Pointer to copy of written data */ member
245 if( (iDc&SQLITE_IOCAP_ATOMIC) || (pWrite->zBuf==0) ){ in writeListSync()
261 if( iDc&SQLITE_IOCAP_SAFE_APPEND && pWrite->zBuf ){ in writeListSync()
278 if( pWrite->zBuf ){ in writeListSync()
280 pWrite->pFile, pWrite->zBuf, pWrite->nBuf, pWrite->iOffset in writeListSync()
312 assert(pWrite->zBuf); in writeListSync()
361 const u8 *zBuf, in writeListAppend() argument
366 assert((zBuf && nBuf) || (!nBuf && !zBuf)); in writeListAppend()
376 if( zBuf ){ in writeListAppend()
377 pNew->zBuf = (u8 *)&pNew[1]; in writeListAppend()
[all …]
Dtest_func.c46 unsigned char zBuf[1000]; in randStr() local
55 if( iMin>=sizeof(zBuf) ) iMin = sizeof(zBuf)-1; in randStr()
58 if( iMax>=sizeof(zBuf) ) iMax = sizeof(zBuf)-1; in randStr()
65 assert( n<sizeof(zBuf) ); in randStr()
66 sqlite3_randomness(n, zBuf); in randStr()
68 zBuf[i] = zSrc[zBuf[i]%(sizeof(zSrc)-1)]; in randStr()
70 zBuf[n] = 0; in randStr()
71 sqlite3_result_text(context, (char*)zBuf, n, SQLITE_TRANSIENT); in randStr()
Dtest1.c81 char zBuf[100]; in get_sqlite_pointer() local
92 sprintf(zBuf, "%p", p->db); in get_sqlite_pointer()
93 if( strncmp(zBuf,"0x",2) ){ in get_sqlite_pointer()
94 sprintf(zBuf, "0x%p", p->db); in get_sqlite_pointer()
96 Tcl_AppendResult(interp, zBuf, 0); in get_sqlite_pointer()
184 char zBuf[200]; in sqlite3TestErrCode() local
186 sprintf(zBuf, "error code %s (%d) does not match sqlite3_errcode %s (%d)", in sqlite3TestErrCode()
189 Tcl_AppendResult(interp, zBuf, 0); in sqlite3TestErrCode()
316 char zBuf[30]; in test_exec_printf() local
327 sprintf(zBuf, "%d", rc); in test_exec_printf()
[all …]
Dtest_demovfs.c164 const void *zBuf, /* Buffer containing data to write */ in demoDirectWrite() argument
176 nWrite = write(p->fd, zBuf, iAmt); in demoDirectWrite()
215 void *zBuf, in demoRead() argument
239 nRead = read(p->fd, zBuf, iAmt); in demoRead()
255 const void *zBuf, in demoWrite() argument
262 char *z = (char *)zBuf; /* Pointer to remaining data to write */ in demoWrite()
295 return demoDirectWrite(p, zBuf, iAmt, iOfst); in demoWrite()
Dtest_fuzzer.c179 char *zBuf; /* Temporary use buffer */ member
331 sqlite3_free(pCur->zBuf); in fuzzerClose()
400 char *zBuf = 0;
402 if( fuzzerRender(pStem, &zBuf, &nBuf)!=SQLITE_OK ) return;
405 pStem->zBasis, pStem->rBaseCost, zBuf, pStem->,
408 sqlite3_free(zBuf);
422 if( fuzzerRender(pStem, &pCur->zBuf, &pCur->nBuf)==SQLITE_NOMEM ){ in fuzzerSeen()
425 h = fuzzerHash(pCur->zBuf); in fuzzerSeen()
427 while( pLookup && strcmp(pLookup->zBasis, pCur->zBuf)!=0 ){ in fuzzerSeen()
609 rc = fuzzerRender(pStem, &pCur->zBuf, &pCur->nBuf); in fuzzerNext()
[all …]
Dtest_thread.c277 char zBuf[100]; in sqlthread_open() local
288 if( sqlite3TestMakePointerStr(interp, zBuf, db) ) return TCL_ERROR; in sqlthread_open()
289 Tcl_AppendResult(interp, zBuf, 0); in sqlthread_open()
566 char zBuf[50]; in blocking_prepare_v2_proc() local
594 sprintf(zBuf, "%s ", (char *)sqlite3TestErrorName(rc)); in blocking_prepare_v2_proc()
595 Tcl_AppendResult(interp, zBuf, sqlite3_errmsg(db), 0); in blocking_prepare_v2_proc()
600 if( sqlite3TestMakePointerStr(interp, zBuf, pStmt) ) return TCL_ERROR; in blocking_prepare_v2_proc()
601 Tcl_AppendResult(interp, zBuf, 0); in blocking_prepare_v2_proc()
Dmemjournal.c74 void *zBuf, /* Put the results here */ in memjrnlRead() argument
79 u8 *zOut = zBuf; in memjrnlRead()
119 const void *zBuf, /* Take data to be written from here */ in memjrnlWrite() argument
125 u8 *zWrite = (u8 *)zBuf; in memjrnlWrite()
Dtest4.c257 char zBuf[100]; in tcl_thread_argc() local
271 sprintf(zBuf, "%d", threadset[i].argc); in tcl_thread_argc()
272 Tcl_AppendResult(interp, zBuf, 0); in tcl_thread_argc()
631 char zBuf[100]; in tcl_thread_db_get() local
645 sqlite3TestMakePointerStr(interp, zBuf, threadset[i].db); in tcl_thread_db_get()
647 Tcl_AppendResult(interp, zBuf, (char*)0); in tcl_thread_db_get()
694 char zBuf[100]; in tcl_thread_stmt_get() local
708 sqlite3TestMakePointerStr(interp, zBuf, threadset[i].pStmt); in tcl_thread_stmt_get()
710 Tcl_AppendResult(interp, zBuf, (char*)0); in tcl_thread_stmt_get()
Dtest_onefile.c268 void *zBuf, in tmpRead() argument
276 memcpy(zBuf, &pTmp->zAlloc[iOfst], iAmt); in tmpRead()
285 const void *zBuf, in tmpWrite() argument
299 memcpy(&pTmp->zAlloc[iOfst], zBuf, iAmt); in tmpWrite()
402 void *zBuf, in fsRead() argument
416 rc = pF->pMethods->xRead(pF, zBuf, iAmt, iOfst+BLOCKSIZE); in fsRead()
426 rc = pF->pMethods->xRead(pF, &((char *)zBuf)[iBuf], iRealAmt, iRealOff); in fsRead()
441 const void *zBuf, in fsWrite() argument
454 rc = pF->pMethods->xWrite(pF, zBuf, iAmt, iOfst+BLOCKSIZE); in fsWrite()
471 rc = pF->pMethods->xWrite(pF, &((char *)zBuf)[iBuf], iRealAmt,iRealOff); in fsWrite()
Dprintf.c949 char *sqlite3_vsnprintf(int n, char *zBuf, const char *zFormat, va_list ap){ in sqlite3_vsnprintf() argument
951 if( n<=0 ) return zBuf; in sqlite3_vsnprintf()
952 sqlite3StrAccumInit(&acc, zBuf, n, 0); in sqlite3_vsnprintf()
957 char *sqlite3_snprintf(int n, char *zBuf, const char *zFormat, ...){ in sqlite3_snprintf() argument
961 z = sqlite3_vsnprintf(n, zBuf, zFormat, ap); in sqlite3_snprintf()
1007 char zBuf[500]; in sqlite3DebugPrintf() local
1008 sqlite3StrAccumInit(&acc, zBuf, sizeof(zBuf), 0); in sqlite3DebugPrintf()
1014 fprintf(stdout,"%s", zBuf); in sqlite3DebugPrintf()
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_expr.c797 static char *exprToString(Fts3Expr *pExpr, char *zBuf){ in exprToString() argument
802 zBuf = sqlite3_mprintf( in exprToString()
803 "%zPHRASE %d %d", zBuf, pPhrase->iColumn, pPhrase->isNot); in exprToString()
804 for(i=0; zBuf && i<pPhrase->nToken; i++){ in exprToString()
805 zBuf = sqlite3_mprintf("%z %.*s%s", zBuf, in exprToString()
810 return zBuf; in exprToString()
814 zBuf = sqlite3_mprintf("%zNEAR/%d ", zBuf, pExpr->nNear); in exprToString()
817 zBuf = sqlite3_mprintf("%zNOT ", zBuf); in exprToString()
820 zBuf = sqlite3_mprintf("%zAND ", zBuf); in exprToString()
823 zBuf = sqlite3_mprintf("%zOR ", zBuf); in exprToString()
[all …]
/external/chromium_org/third_party/sqlite/src/tool/
Dshowjournal.c55 char zBuf[100]; in print_decode_line() local
56 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
57 i = strlen(zBuf); in print_decode_line()
60 sprintf(&zBuf[i], " "); in print_decode_line()
62 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
65 i += strlen(&zBuf[i]); in print_decode_line()
67 sprintf(&zBuf[i], " %10u", val); in print_decode_line()
68 printf("%s %s\n", zBuf, zMsg); in print_decode_line()
Dshowwal.c114 char zBuf[100]; in print_decode_line() local
115 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
116 i = strlen(zBuf); in print_decode_line()
119 sprintf(&zBuf[i], " "); in print_decode_line()
121 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
124 i += strlen(&zBuf[i]); in print_decode_line()
127 sprintf(&zBuf[i], " 0x%08x", val); in print_decode_line()
129 sprintf(&zBuf[i], " %9d", val); in print_decode_line()
131 printf("%s %s\n", zBuf, zMsg); in print_decode_line()
Dshowdb.c136 char zBuf[100]; in print_decode_line() local
137 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
138 i = strlen(zBuf); in print_decode_line()
141 sprintf(&zBuf[i], " "); in print_decode_line()
143 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
146 i += strlen(&zBuf[i]); in print_decode_line()
148 sprintf(&zBuf[i], " %9d", val); in print_decode_line()
149 printf("%s %s\n", zBuf, zMsg); in print_decode_line()
399 char zBuf[30]; in decode_btree_page() local
403 sprintf(zBuf, "%d", i); in decode_btree_page()
[all …]
Drollback-test.c91 char zBuf[100]; in main() local
92 sprintf(zBuf, "PRAGMA pagesize=%d", szPg); in main()
93 runSql(db, zBuf); in main()
/external/lzma/C/Util/7z/
Dmakefile.gcc7 OBJS = 7zMain.o 7zAlloc.o 7zBuf.o 7zBuf2.o 7zCrc.o 7zCrcOpt.o 7zDec.o 7zIn.o CpuArch.o LzmaDec.o Lz…
20 7zBuf.o: ../../7zBuf.c
21 $(CXX) $(CFLAGS) ../../7zBuf.c
/external/chromium_org/third_party/sqlite/src/test/
Dthreadtest1.c259 char zBuf[200]; in main() local
260 sprintf(zBuf, "testdb-%d", (i+1)/2); in main()
261 unlink(zBuf); in main()
284 char zBuf[200]; in main() local
285 sprintf(zBuf, "testdb-%d", (i+1)/2); in main()
286 unlink(zBuf); in main()

123