| /sqlite-3.40.0/src/ |
| H A D | test_md5.c | 355 int amt; in md5file_cmd() local 368 amt = atoi(argv[3]); in md5file_cmd() 371 amt = 2147483647; in md5file_cmd() 381 while( amt>0 ){ in md5file_cmd() 383 n = (int)fread(zBuf, 1, sizeof(zBuf)<=amt ? sizeof(zBuf) : amt, in); in md5file_cmd() 386 amt -= n; in md5file_cmd()
|
| H A D | test_hexio.c | 108 int amt, got; in hexio_read() local 118 if( Tcl_GetIntFromObj(interp, objv[3], &amt) ) return TCL_ERROR; in hexio_read() 120 zBuf = sqlite3_malloc( amt*2+1 ); in hexio_read() 133 got = (int)fread(zBuf, 1, amt, in); in hexio_read()
|
| H A D | btree.h | 327 int sqlite3BtreePayload(BtCursor*, u32 offset, u32 amt, void*); 337 int sqlite3BtreePayloadChecked(BtCursor*, u32 offset, u32 amt, void*); 338 int sqlite3BtreePutData(BtCursor*, u32 offset, u32 amt, void*);
|
| H A D | os.c | 88 int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead() argument 90 return id->pMethods->xRead(id, pBuf, amt, offset); in sqlite3OsRead() 92 int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite() argument 94 return id->pMethods->xWrite(id, pBuf, amt, offset); in sqlite3OsWrite()
|
| H A D | os.h | 177 int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset); 178 int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
|
| H A D | vdbemem.c | 1250 u32 amt, /* Number of bytes to return. */ in sqlite3VdbeMemFromBtree() argument 1255 if( sqlite3BtreeMaxRecordSize(pCur)<offset+amt ){ in sqlite3VdbeMemFromBtree() 1258 if( SQLITE_OK==(rc = sqlite3VdbeMemClearAndResize(pMem, amt+1)) ){ in sqlite3VdbeMemFromBtree() 1259 rc = sqlite3BtreePayload(pCur, offset, amt, pMem->z); in sqlite3VdbeMemFromBtree() 1261 pMem->z[amt] = 0; /* Overrun area used when reading malformed records */ in sqlite3VdbeMemFromBtree() 1263 pMem->n = (int)amt; in sqlite3VdbeMemFromBtree() 1272 u32 amt, /* Number of bytes to return. */ in sqlite3VdbeMemFromBtreeZeroOffset() argument 1287 if( amt<=available ){ in sqlite3VdbeMemFromBtreeZeroOffset() 1289 pMem->n = (int)amt; in sqlite3VdbeMemFromBtreeZeroOffset() 1291 rc = sqlite3VdbeMemFromBtree(pCur, 0, amt, pMem); in sqlite3VdbeMemFromBtreeZeroOffset()
|
| H A D | os_unix.c | 3339 int amt, in unixRead() argument 3346 assert( amt>0 ); in unixRead() 3353 || offset+amt<=PENDING_BYTE in unixRead() 3368 amt -= nCopy; in unixRead() 3375 if( got==amt ){ in unixRead() 3470 int amt, in unixWrite() argument 3476 assert( amt>0 ); in unixWrite() 3520 amt -= nCopy; in unixWrite() 3526 while( (wrote = seekAndWrite(pFile, offset, pBuf, amt))<amt && wrote>0 ){ in unixWrite() 3527 amt -= wrote; in unixWrite() [all …]
|
| H A D | os_win.c | 2723 int amt, /* Number of bytes to read */ argument 2734 assert( amt>0 ); 2739 pFile->h, pBuf, amt, offset, pFile->locktype)); 2745 if( offset+amt <= pFile->mmapSize ){ 2754 amt -= nCopy; 2766 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){ 2783 if( nRead<(DWORD)amt ){ 2785 memset(&((char*)pBuf)[nRead], 0, amt-nRead); 2810 assert( amt>0 ); 2823 if( offset+amt <= pFile->mmapSize ){ [all …]
|
| H A D | btree.c | 4980 int a = amt; in accessPayload() 4987 amt -= a; in accessPayload() 4993 if( rc==SQLITE_OK && amt>0 ){ in accessPayload() 5062 int a = amt; in accessPayload() 5111 amt -= a; in accessPayload() 5112 if( amt==0 ) return rc; in accessPayload() 5120 if( rc==SQLITE_OK && amt>0 ){ in accessPayload() 5160 u32 amt, in accessPayloadChecked() argument 5204 int amt; in fetchPayload() local 5213 amt = pCur->info.nLocal; in fetchPayload() [all …]
|
| H A D | test1.c | 5643 int amt; in test_release_memory() local 5653 amt = sqlite3_release_memory(N); in test_release_memory() 5654 Tcl_SetObjResult(interp, Tcl_NewIntObj(amt)); in test_release_memory() 5795 sqlite3_int64 amt; in test_soft_heap_limit() local 5804 amt = sqlite3_soft_heap_limit64(N); in test_soft_heap_limit() 5805 Tcl_SetObjResult(interp, Tcl_NewWideIntObj(amt)); in test_soft_heap_limit() 5822 sqlite3_int64 amt; in test_hard_heap_limit() local 5831 amt = sqlite3_hard_heap_limit64(N); in test_hard_heap_limit() 5832 Tcl_SetObjResult(interp, Tcl_NewWideIntObj(amt)); in test_hard_heap_limit()
|
| /sqlite-3.40.0/test/ |
| H A D | sort5.test | 64 foreach {filename id off amt} $args {} 65 if {[info exists F($id)]==0 || $F($id)<($off + $amt)} { 66 set F($id) [expr $off+$amt]
|
| H A D | fuzzcheck.c | 2310 int amt = idx*10/(g.nSql); in main() local 2311 if( amt!=prevAmt ){ in main() 2312 printf(" %d%%", amt*10); in main() 2314 prevAmt = amt; in main() 2349 int amt = idx*10/(g.nDb*g.nSql); in main() local 2350 if( amt!=prevAmt ){ in main() 2351 printf(" %d%%", amt*10); in main() 2353 prevAmt = amt; in main()
|
| /sqlite-3.40.0/ext/async/ |
| H A D | sqlite3async.c | 648 int amt, in asyncWrite() argument 652 return addNewAsyncWrite(p, ASYNC_WRITE, iOff, amt, pBuf); in asyncWrite()
|
| /sqlite-3.40.0/tool/ |
| H A D | lemon.c | 496 int amt = 100; in Action_new() local 497 actionfreelist = (struct action *)calloc(amt, sizeof(struct action)); in Action_new() 502 for(i=0; i<amt-1; i++) actionfreelist[i].next = &actionfreelist[i+1]; in Action_new() 503 actionfreelist[amt-1].next = 0; in Action_new() 3120 int amt = 100; in Plink_new() local 3121 plink_freelist = (struct plink *)calloc( amt, sizeof(struct plink) ); in Plink_new() 3127 for(i=0; i<amt-1; i++) plink_freelist[i].next = &plink_freelist[i+1]; in Plink_new() 3128 plink_freelist[amt-1].next = 0; in Plink_new()
|