| /redis-3.2.3/src/ |
| H A D | Makefile.dep | 1 adlist.o: adlist.c adlist.h zmalloc.h 2 ae.o: ae.c ae.h zmalloc.h config.h ae_kqueue.c ae_epoll.c ae_select.c ae_evport.c 10 adlist.h zmalloc.h anet.h ziplist.h intset.h version.h util.h latency.h \ 15 adlist.h zmalloc.h anet.h ziplist.h intset.h version.h util.h latency.h \ 20 adlist.h zmalloc.h anet.h ziplist.h intset.h version.h util.h latency.h \ 51 dict.o: dict.c fmacros.h dict.h zmalloc.h redisassert.h 62 intset.o: intset.c intset.h zmalloc.h endianconv.h config.h 100 ../deps/hiredis/hiredis.h adlist.h zmalloc.h 125 sds.o: sds.c sds.h sdsalloc.h zmalloc.h 180 zipmap.o: zipmap.c zmalloc.h endianconv.h config.h [all …]
|
| H A D | adlist.c | 45 if ((list = zmalloc(sizeof(*list))) == NULL) in listCreate() 84 if ((node = zmalloc(sizeof(*node))) == NULL) in listAddNodeHead() 110 if ((node = zmalloc(sizeof(*node))) == NULL) in listAddNodeTail() 129 if ((node = zmalloc(sizeof(*node))) == NULL) in listInsertNode() 182 if ((iter = zmalloc(sizeof(*iter))) == NULL) return NULL; in listGetIterator()
|
| H A D | sdsalloc.h | 40 #define s_malloc zmalloc
|
| H A D | Makefile | 120 REDIS_SERVER_OBJ=adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o p… 123 REDIS_CLI_OBJ=anet.o adlist.o redis-cli.o zmalloc.o release.o anet.o ae.o crc64.o 125 REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o zmalloc.o redis-benchmark.o 229 $(REDIS_CC) sds.c zmalloc.c -DSDS_TEST_MAIN -o /tmp/sds_test
|
| H A D | ae_epoll.c | 40 aeApiState *state = zmalloc(sizeof(aeApiState)); in aeApiCreate() 43 state->events = zmalloc(sizeof(struct epoll_event)*eventLoop->setsize); in aeApiCreate()
|
| H A D | ae_kqueue.c | 42 aeApiState *state = zmalloc(sizeof(aeApiState)); in aeApiCreate() 45 state->events = zmalloc(sizeof(struct kevent)*eventLoop->setsize); in aeApiCreate()
|
| H A D | ae.c | 67 if ((eventLoop = zmalloc(sizeof(*eventLoop))) == NULL) goto err; in aeCreateEventLoop() 68 eventLoop->events = zmalloc(sizeof(aeFileEvent)*setsize); in aeCreateEventLoop() 69 eventLoop->fired = zmalloc(sizeof(aeFiredEvent)*setsize); in aeCreateEventLoop() 210 te = zmalloc(sizeof(*te)); in aeCreateTimeEvent()
|
| H A D | sparkline.c | 58 struct sequence *seq = zmalloc(sizeof(*seq)); in createSparklineSequence() 102 char *chars = zmalloc(len); in sparklineRenderRange()
|
| H A D | slowlog.c | 49 slowlogEntry *se = zmalloc(sizeof(*se)); in slowlogCreateEntry() 54 se->argv = zmalloc(sizeof(robj*)*slargc); in slowlogCreateEntry()
|
| H A D | zmalloc.c | 124 void *zmalloc(size_t size) { in zmalloc() function 159 if (ptr == NULL) return zmalloc(size); in zrealloc() 215 char *p = zmalloc(l); in zstrdup()
|
| H A D | zmalloc.h | 68 void *zmalloc(size_t size);
|
| H A D | redis-benchmark.c | 318 client c = zmalloc(sizeof(struct _client)); in createClient() 382 c->randptr = zmalloc(sizeof(char*)*c->randlen); in createClient() 394 c->randptr = zmalloc(sizeof(char*)*c->randfree); in createClient() 687 config.latency = zmalloc(sizeof(long long)*config.requests); in main() 719 data = zmalloc(config.datasize+1); in main()
|
| H A D | rdb.c | 228 p = zmalloc(len); in rdbLoadIntegerObject() 289 if ((out = zmalloc(outlen+1)) == NULL) return 0; in rdbSaveLzfStringObject() 311 if ((c = zmalloc(clen)) == NULL) goto err; in rdbLoadLzfStringObject() 315 val = zmalloc(len); in rdbLoadLzfStringObject() 447 void *buf = zmalloc(len); in rdbGenericLoadStringObject() 1493 ok_slaves = zmalloc(sizeof(uint64_t)); /* Make space for the count. */ in backgroundSaveDoneHandlerSocket() 1600 fds = zmalloc(sizeof(int)*listLength(server.slaves)); in rdbSaveToSlavesSockets() 1604 clientids = zmalloc(sizeof(uint64_t)*listLength(server.slaves)); in rdbSaveToSlavesSockets() 1664 void *msg = zmalloc(sizeof(uint64_t)*(1+2*numfds)); in rdbSaveToSlavesSockets()
|
| H A D | ae_select.c | 43 aeApiState *state = zmalloc(sizeof(aeApiState)); in aeApiCreate()
|
| H A D | rio.c | 270 r->io.fdset.fds = zmalloc(sizeof(int)*numfds); in rioInitWithFdset() 271 r->io.fdset.state = zmalloc(sizeof(int)*numfds); in rioInitWithFdset()
|
| H A D | multi.c | 65 mc->argv = zmalloc(sizeof(robj*)*c->argc); in queueMultiCommand() 224 wk = zmalloc(sizeof(*wk)); in watchForKey()
|
| H A D | bio.c | 127 struct bio_job *job = zmalloc(sizeof(*job)); in bioCreateBackgroundJob()
|
| H A D | object.c | 40 robj *o = zmalloc(sizeof(*o)); in createObject() 61 robj *o = zmalloc(sizeof(robj)+sizeof(struct sdshdr8)+len+1); in createEmbeddedStringObject() 220 zset *zs = zmalloc(sizeof(*zs)); in createZsetObject()
|
| H A D | db.c | 1075 keys = zmalloc(sizeof(int)*((last - cmd->firstkey)+1)); in getKeysUsingCommandTable() 1126 keys = zmalloc(sizeof(int)*(num+1)); in zunionInterGetKeys() 1152 keys = zmalloc(sizeof(int)*num); in evalGetKeys() 1173 keys = zmalloc(sizeof(int)*2); /* Alloc 2 places for the worst case. */ in sortGetKeys() 1231 keys = zmalloc(sizeof(int)*num); in migrateGetKeys()
|
| H A D | quicklist.c | 97 quicklist = zmalloc(sizeof(*quicklist)); in quicklistCreate() 140 node = zmalloc(sizeof(*node)); in quicklistCreateNode() 187 quicklistLZF *lzf = zmalloc(sizeof(*lzf) + node->sz); in __quicklistCompressNode() 220 void *decompressed = zmalloc(node->sz); in __quicklistDecompressNode() 802 new_node->zl = zmalloc(zl_sz); in _quicklistSplitNode() 1051 iter = zmalloc(sizeof(*iter)); in quicklistGetIterator() 1198 node->zl = zmalloc(lzf_sz); in quicklistDup() 1201 node->zl = zmalloc(current->sz); in quicklistDup() 1375 vstr = zmalloc(sz); in _quicklistSaver()
|
| H A D | dict.c | 171 dict *d = zmalloc(sizeof(*d)); in dictCreate() 364 entry = zmalloc(sizeof(*entry)); in dictAddRaw() 560 dictIterator *iter = zmalloc(sizeof(*iter)); in dictGetIterator()
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | sdsalloc.h | 40 #define s_malloc zmalloc
|
| H A D | zmalloc.h | 7 #define zmalloc malloc macro
|
| /redis-3.2.3/utils/hashtable/ |
| H A D | README | 13 cc -I ../../src/ rehashing.c ../../src/zmalloc.c ../../src/dict.c -o rehashing_test
|
| H A D | rehashing.c | 74 dictEntry **des = zmalloc(sizeof(dictEntry*)*dictSize(d)); in stressGetKeys()
|