| /redis-3.2.3/deps/linenoise/ |
| H A D | linenoise.c | 370 ls->pos = saved.pos; in completeLine() 508 size_t pos = l->pos; in refreshSingleLine() local 514 pos--; in refreshSingleLine() 653 memmove(l->buf+l->pos+1,l->buf+l->pos,l->len-l->pos); in linenoiseEditInsert() 726 memmove(l->buf+l->pos,l->buf+l->pos+1,l->len-l->pos-1); in linenoiseEditDelete() 736 memmove(l->buf+l->pos-1,l->buf+l->pos,l->len-l->pos); in linenoiseEditBackspace() 750 while (l->pos > 0 && l->buf[l->pos-1] == ' ') in linenoiseEditDeletePrevWord() 752 while (l->pos > 0 && l->buf[l->pos-1] != ' ') in linenoiseEditDeletePrevWord() 846 if (l.pos > 0 && l.pos < l.len) { in linenoiseEdit() 848 buf[l.pos-1] = buf[l.pos]; in linenoiseEdit() [all …]
|
| /redis-3.2.3/src/ |
| H A D | intset.c | 121 if (pos) *pos = 0; in intsetSearch() 127 if (pos) *pos = intrev32ifbe(is->length); in intsetSearch() 130 if (pos) *pos = 0; in intsetSearch() 148 if (pos) *pos = mid; in intsetSearch() 151 if (pos) *pos = min; in intsetSearch() 206 uint32_t pos; in intsetAdd() local 225 if (pos < intrev32ifbe(is->length)) intsetMoveTail(is,pos,pos+1); in intsetAdd() 228 _intsetSet(is,pos,value); in intsetAdd() 236 uint32_t pos; in intsetRemove() local 246 if (pos < (len-1)) intsetMoveTail(is,pos+1,pos); in intsetRemove() [all …]
|
| H A D | redis-check-aof.c | 107 off_t pos = 0; in process() local 112 if (!multi) pos = ftello(fp); in process() 146 return pos; in process() 188 off_t pos = process(fp); in main() local 189 off_t diff = size-pos; in main() 191 (long long) size, (long long) pos, (long long) diff); in main() 195 …from %lld bytes, with %lld bytes, to %lld bytes\n",(long long)size,(long long)diff,(long long)pos); in main() 202 if (ftruncate(fileno(fp), pos) == -1) { in main()
|
| H A D | rio.c | 63 r->io.buffer.pos += len; in rioBufferWrite() 69 if (sdslen(r->io.buffer.ptr)-r->io.buffer.pos < len) in rioBufferRead() 71 memcpy(buf,r->io.buffer.ptr+r->io.buffer.pos,len); in rioBufferRead() 72 r->io.buffer.pos += len; in rioBufferRead() 78 return r->io.buffer.pos; in rioBufferTell() 103 r->io.buffer.pos = 0; in rioInitWithBuffer() 226 r->io.fdset.pos += count; in rioFdsetWrite() 243 return r->io.fdset.pos; in rioFdsetTell() 275 r->io.fdset.pos = 0; in rioInitWithFdset()
|
| H A D | networking.c | 1119 sdsrange(c->querybuf,pos,-1); in setProtocolError() 1124 int pos = 0, ok; in processMultibulkBuffer() local 1151 setProtocolError(c,pos); in processMultibulkBuffer() 1155 pos = (newline-c->querybuf)+2; in processMultibulkBuffer() 1195 ok = string2ll(c->querybuf+pos+1,newline-(c->querybuf+pos+1),&ll); in processMultibulkBuffer() 1202 pos += newline-(c->querybuf+pos)+2; in processMultibulkBuffer() 1211 pos = 0; in processMultibulkBuffer() 1229 if (pos == 0 && in processMultibulkBuffer() 1239 pos = 0; in processMultibulkBuffer() 1243 pos += c->bulklen+2; in processMultibulkBuffer() [all …]
|
| H A D | rio.h | 68 off_t pos; member 81 off_t pos; member
|
| H A D | bitops.c | 105 long pos = 0; /* Position of bit, to return to the caller. */ in redisBitpos() local 124 pos += 8; in redisBitpos() 134 pos += sizeof(*l)*8; in redisBitpos() 170 if (((one & word) != 0) == bit) return pos; in redisBitpos() 171 pos++; in redisBitpos() 866 long pos = redisBitpos(p+start,bytes,bit); in bitposCommand() local 875 if (end_given && bit == 0 && pos == bytes*8) { in bitposCommand() 879 if (pos != -1) pos += start*8; /* Adjust for the bytes we skipped. */ in bitposCommand() 880 addReplyLongLong(c,pos); in bitposCommand()
|
| H A D | intset.h | 46 uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value);
|
| H A D | t_zset.c | 2321 int pos = 4; in genericZrangebyscoreCommand() local 2324 if (remaining >= 1 && !strcasecmp(c->argv[pos]->ptr,"withscores")) { in genericZrangebyscoreCommand() 2325 pos++; remaining--; in genericZrangebyscoreCommand() 2327 } else if (remaining >= 3 && !strcasecmp(c->argv[pos]->ptr,"limit")) { in genericZrangebyscoreCommand() 2328 if ((getLongFromObjectOrReply(c, c->argv[pos+1], &offset, NULL) != C_OK) || in genericZrangebyscoreCommand() 2329 (getLongFromObjectOrReply(c, c->argv[pos+2], &limit, NULL) != C_OK)) return; in genericZrangebyscoreCommand() 2330 pos += 3; remaining -= 3; in genericZrangebyscoreCommand() 2671 int pos = 4; in genericZrangebylexCommand() local 2674 if (remaining >= 3 && !strcasecmp(c->argv[pos]->ptr,"limit")) { in genericZrangebylexCommand() 2675 if ((getLongFromObjectOrReply(c, c->argv[pos+1], &offset, NULL) != C_OK) || in genericZrangebylexCommand() [all …]
|
| H A D | cluster.c | 69 int bitmapTestBit(unsigned char *bitmap, int pos); 3339 int bitmapTestBit(unsigned char *bitmap, int pos) { in bitmapTestBit() argument 3340 off_t byte = pos/8; in bitmapTestBit() 3341 int bit = pos&7; in bitmapTestBit() 3347 off_t byte = pos/8; in bitmapSetBit() 3348 int bit = pos&7; in bitmapSetBit() 3354 off_t byte = pos/8; in bitmapClearBit() 3355 int bit = pos&7; in bitmapClearBit() 4780 size_t pos = 0, towrite; in migrateCommand() local 4783 while ((towrite = sdslen(buf)-pos) > 0) { in migrateCommand() [all …]
|
| H A D | ziplist.c | 1119 static void stress(int pos, int num, int maxsize, int dnum) { in stress() argument 1133 zl = ziplistPush(zl,(unsigned char*)"quux",4,pos); in stress() 1137 i,intrev32ifbe(ZIPLIST_BYTES(zl)),num,posstr[pos],usec()-start); in stress()
|
| H A D | t_list.c | 43 int pos = (where == LIST_HEAD) ? QUICKLIST_HEAD : QUICKLIST_TAIL; in listTypePush() local 46 quicklistPush(subject->ptr, value->ptr, len, pos); in listTypePush()
|
| H A D | db.c | 581 int pos = 0; in scanGenericCommand() local 584 while(intsetGet(o->ptr,pos++,&ll)) in scanGenericCommand()
|
| H A D | redis-cli.c | 238 int i, len, pos = 0; in cliInitHelp() local 251 helpEntries[pos++] = tmp; in cliInitHelp() 259 helpEntries[pos++] = tmp; in cliInitHelp()
|
| H A D | rdb.c | 1245 void loadingProgress(off_t pos) { in loadingProgress() argument 1246 server.loading_loaded_bytes = pos; in loadingProgress()
|
| H A D | quicklist.c | 1331 int pos = (where == QUICKLIST_HEAD) ? 0 : -1; in quicklistPopCustom() local 1352 p = ziplistIndex(node->zl, pos); in quicklistPopCustom()
|
| H A D | server.h | 1257 void loadingProgress(off_t pos);
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lua_struct.c | 304 pos += gettoalign(pos, &h, opt, size); in b_unpack() 320 memcpy(&f, data+pos, size); in b_unpack() 327 memcpy(&d, data+pos, size); in b_unpack() 344 const char *e = (const char *)memchr(data+pos, '\0', ld - pos); in b_unpack() 347 size = (e - (data+pos)) + 1; in b_unpack() 353 pos += size; in b_unpack() 355 lua_pushinteger(L, pos + 1); in b_unpack() 363 size_t pos = 0; in b_size() local 368 pos += gettoalign(pos, &h, opt, size); in b_size() 375 pos += size; in b_size() [all …]
|
| H A D | ltablib.c | 92 int pos; /* where to insert new element */ in tinsert() local 95 pos = e; /* insert new element at the end */ in tinsert() 101 if (pos > e) e = pos; /* `grow' array if necessary */ in tinsert() 102 for (i = e; i > pos; i--) { /* move up elements */ in tinsert() 113 lua_rawseti(L, 1, pos); /* t[pos] = v */ in tinsert() 120 int pos = luaL_optint(L, 2, e); in tremove() local 121 if (!(1 <= pos && pos <= e)) /* position is outside bounds? */ in tremove() 124 lua_rawgeti(L, 1, pos); /* result = t[pos] */ in tremove() 125 for ( ;pos<e; pos++) { in tremove() 126 lua_rawgeti(L, 1, pos+1); in tremove() [all …]
|
| H A D | lstrlib.c | 36 static ptrdiff_t posrelat (ptrdiff_t pos, size_t len) { in posrelat() argument 38 if (pos < 0) pos += (ptrdiff_t)len + 1; in posrelat() 39 return (pos >= 0) ? pos : 0; in posrelat()
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | hiredis.c | 261 int pos = 0; in seekNewline() local 269 while(pos < _len && s[pos] != '\r') pos++; in seekNewline() 279 pos++; in seekNewline() 319 p = r->buf+r->pos; in readLine() 397 p = r->buf+r->pos; in processBulkItem() 654 r->pos = 0; in redisReaderGetReply() 883 pos += sprintf(cmd+pos,"$%zu\r\n",sdslen(curargv[j])); in redisvFormatCommand() 891 cmd[pos] = '\0'; in redisvFormatCommand() 960 pos += sprintf(cmd+pos,"$%zu\r\n",len); in redisFormatCommandArgv() 962 pos += len; in redisFormatCommandArgv() [all …]
|
| H A D | hiredis.h | 130 size_t pos; /* Buffer cursor */ member
|
| /redis-3.2.3/tests/unit/ |
| H A D | bitops.tcl | 326 set pos [randomInt $max] 327 r setbit str $pos 1 328 if {$first_one_pos == -1 || $first_one_pos > $pos} { 331 set first_one_pos $pos 342 set pos [randomInt $max] 343 r setbit str $pos 0 344 if {$first_zero_pos > $pos} { 347 set first_zero_pos $pos
|