| /redis-3.2.3/deps/lua/src/ |
| H A D | ldblib.c | 78 *arg = 1; in getthread() 82 *arg = 0; in getthread() 101 int arg; in db_getinfo() local 145 int arg; in db_getlocal() local 166 int arg; in db_setlocal() local 171 luaL_checkany(L, arg+3); in db_setlocal() 172 lua_settop(L, arg+3); in db_setlocal() 259 int arg, mask, count; in db_sethook() local 263 lua_settop(L, arg+1); in db_sethook() 283 int arg; in db_gethook() local [all …]
|
| H A D | strbuf.c | 34 va_list arg; in die() local 36 va_start(arg, fmt); in die() 37 vfprintf(stderr, fmt, arg); in die() 38 va_end(arg); in die() 204 va_list arg; in strbuf_append_fmt() local 209 va_start(arg, fmt); in strbuf_append_fmt() 210 fmt_len = vsnprintf(s->buf + s->length, len, fmt, arg); in strbuf_append_fmt() 211 va_end(arg); in strbuf_append_fmt() 223 va_list arg; in strbuf_append_fmt_retry() local 230 va_start(arg, fmt); in strbuf_append_fmt_retry() [all …]
|
| H A D | lua_struct.c | 169 static void putinteger (lua_State *L, luaL_Buffer *b, int arg, int endian, in putinteger() argument 171 lua_Number n = luaL_checknumber(L, arg); in putinteger() 212 int arg = 2; in b_pack() local 226 putinteger(L, &b, arg++, h.endian, size); in b_pack() 234 float f = (float)luaL_checknumber(L, arg++); in b_pack() 240 double d = luaL_checknumber(L, arg++); in b_pack() 247 const char *s = luaL_checklstring(L, arg++, &l); in b_pack() 249 luaL_argcheck(L, l >= (size_t)size, arg, "string too short"); in b_pack()
|
| H A D | lstrlib.c | 696 static void addquoted (lua_State *L, luaL_Buffer *b, int arg) { in addquoted() argument 698 const char *s = luaL_checklstring(L, arg, &l); in addquoted() 758 int arg = 1; in str_format() local 760 const char *strfrmt = luaL_checklstring(L, arg, &sfl); in str_format() 772 if (++arg > top) in str_format() 773 luaL_argerror(L, arg, "no value"); in str_format() 777 sprintf(buff, form, (int)luaL_checknumber(L, arg)); in str_format() 792 sprintf(buff, form, (double)luaL_checknumber(L, arg)); in str_format() 796 addquoted(L, &b, arg); in str_format() 801 const char *s = luaL_checklstring(L, arg, &l); in str_format() [all …]
|
| H A D | liolib.c | 48 static void fileerror (lua_State *L, int arg, const char *filename) { in fileerror() argument 50 luaL_argerror(L, arg, lua_tostring(L, -1)); in fileerror() 413 static int g_write (lua_State *L, FILE *f, int arg) { in g_write() argument 416 for (; nargs--; arg++) { in g_write() 417 if (lua_type(L, arg) == LUA_TNUMBER) { in g_write() 420 fprintf(f, LUA_NUMBER_FMT, lua_tonumber(L, arg)) > 0; in g_write() 424 const char *s = luaL_checklstring(L, arg, &l); in g_write()
|
| /redis-3.2.3/utils/ |
| H A D | generate-command-help.rb | 26 def argument arg 27 name = arg["name"].is_a?(Array) ? arg["name"].join(" ") : arg["name"] 28 name = arg["enum"].join "|" if "enum" == arg["type"] 29 name = arg["command"] + " " + name if arg["command"] 30 if arg["multiple"] 33 if arg["optional"] 41 command["arguments"].map do |arg| 42 argument arg
|
| H A D | speed-regression.tcl | 114 set arg [lindex $argv [expr $j+1]] 116 set ::tests $arg 119 set ::datasize $arg 122 set ::requests $arg
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | mtx.c | 25 thd_start_arg_t *arg = (thd_start_arg_t *)varg; in thd_start() local 29 mtx_lock(&arg->mtx); in thd_start() 30 arg->x++; in thd_start() 31 mtx_unlock(&arg->mtx); in thd_start() 38 thd_start_arg_t arg; in TEST_BEGIN() local 42 assert_false(mtx_init(&arg.mtx), "Unexpected mtx_init() failure"); in TEST_BEGIN() 43 arg.x = 0; in TEST_BEGIN() 45 thd_create(&thds[i], thd_start, (void *)&arg); in TEST_BEGIN() 48 assert_u_eq(arg.x, NTHREADS * NINCRS, in TEST_BEGIN()
|
| H A D | tsd.c | 13 data_cleanup(void *arg) in malloc_tsd_types() 15 data_t *data = (data_t *)arg; in malloc_tsd_types() 56 thd_start(void *arg) in malloc_tsd_externs() 58 data_t d = (data_t)(uintptr_t)arg; in malloc_tsd_externs() 72 assert_x_eq(*data_tsd_get(), (data_t)(uintptr_t)arg, in malloc_tsd_externs()
|
| H A D | mq.c | 34 thd_receiver_start(void *arg) in thd_receiver_start() argument 36 mq_t *mq = (mq_t *)arg; in thd_receiver_start() 48 thd_sender_start(void *arg) in thd_sender_start() argument 50 mq_t *mq = (mq_t *)arg; in thd_sender_start()
|
| /redis-3.2.3/deps/jemalloc/test/src/ |
| H A D | thd.c | 5 thd_create(thd_t *thd, void *(*proc)(void *), void *arg) in thd_create() argument 8 *thd = CreateThread(NULL, 0, routine, arg, 0, NULL); in thd_create() 26 thd_create(thd_t *thd, void *(*proc)(void *), void *arg) in thd_create() argument 29 if (pthread_create(thd, NULL, proc, arg) != 0) in thd_create()
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | rb.h | 183 a_rbt_type *, a_type *, void *), void *arg); \ 875 || (ret = cb(rbtree, node, arg)) != NULL) { \ 879 a_field, node), cb, arg)); \ 894 a_field, node), cb, arg)); \ 900 if ((ret = cb(rbtree, node, arg)) != NULL) { \ 904 a_field, node), cb, arg)); \ 913 cb, arg); \ 941 void *arg) { \ 957 if ((ret = cb(rbtree, node, arg)) != NULL) { \ 970 rbtree->rbt_root, cb, arg); \ [all …]
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | luac.lua | 4 assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua") 6 assert(f:write(string.dump(assert(loadfile(arg[1])))))
|
| H A D | echo.lua | 3 for i=0,table.getn(arg) do 4 print(i,arg[i])
|
| /redis-3.2.3/tests/ |
| H A D | test_helper.tcl | 411 set arg [lindex $argv [expr $j+1]] 413 foreach tag $arg { 427 set ::host $arg 430 set ::port $arg 437 set ::all_tests $arg 446 set ::test_server_port $arg 449 set ::numclients $arg 452 set ::timeout $arg 502 set arg [::redis::redis_bulk_read $s] 503 if {$j == 0} {set arg [string tolower $arg]} [all …]
|
| /redis-3.2.3/src/ |
| H A D | bio.c | 85 void *bioProcessBackgroundJobs(void *arg); 117 void *arg = (void*)(unsigned long) j; in bioInit() local 118 if (pthread_create(&thread,&attr,bioProcessBackgroundJobs,arg) != 0) { in bioInit() 140 void *bioProcessBackgroundJobs(void *arg) { in bioProcessBackgroundJobs() argument 142 unsigned long type = (unsigned long) arg; in bioProcessBackgroundJobs()
|
| H A D | geo.c | 485 char *arg = c->argv[base_args + i]->ptr; in georadiusGeneric() local 486 if (!strcasecmp(arg, "withdist")) { in georadiusGeneric() 488 } else if (!strcasecmp(arg, "withhash")) { in georadiusGeneric() 490 } else if (!strcasecmp(arg, "withcoord")) { in georadiusGeneric() 492 } else if (!strcasecmp(arg, "asc")) { in georadiusGeneric() 494 } else if (!strcasecmp(arg, "desc")) { in georadiusGeneric() 496 } else if (!strcasecmp(arg, "count") && (i+1) < remaining) { in georadiusGeneric() 504 } else if (!strcasecmp(arg, "store") && (i+1) < remaining) { in georadiusGeneric() 508 } else if (!strcasecmp(arg, "storedist") && (i+1) < remaining) { in georadiusGeneric()
|
| /redis-3.2.3/deps/hiredis/adapters/ |
| H A D | libevent.h | 42 static void redisLibeventReadEvent(int fd, short event, void *arg) { in redisLibeventReadEvent() argument 44 redisLibeventEvents *e = (redisLibeventEvents*)arg; in redisLibeventReadEvent() 48 static void redisLibeventWriteEvent(int fd, short event, void *arg) { in redisLibeventWriteEvent() argument 50 redisLibeventEvents *e = (redisLibeventEvents*)arg; in redisLibeventWriteEvent()
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | tsd.c | 29 malloc_tsd_no_cleanup(void *arg) in malloc_tsd_no_cleanup() argument 71 tsd_cleanup(void *arg) in tsd_cleanup() argument 73 tsd_t *tsd = (tsd_t *)arg; in tsd_cleanup()
|
| H A D | mutex.c | 54 void *__restrict arg) in pthread_create() argument 60 return (pthread_create_fptr(thread, attr, start_routine, arg)); in pthread_create()
|
| H A D | prof.c | 326 prof_unwind_init_callback(struct _Unwind_Context *context, void *arg) in prof_unwind_init_callback() argument 335 prof_unwind_callback(struct _Unwind_Context *context, void *arg) in prof_unwind_callback() argument 337 prof_unwind_data_t *data = (prof_unwind_data_t *)arg; in prof_unwind_callback() 885 size_t *tdata_count = (size_t *)arg; in prof_tdata_count_iter() 1101 prof_tctx_dump_iter(prof_tctx_tree_t *tctxs, prof_tctx_t *tctx, void *arg) in prof_tctx_dump_iter() argument 1103 bool propagate_err = *(bool *)arg; in prof_tctx_dump_iter() 1174 size_t *leak_ngctx = (size_t *)arg; in prof_gctx_merge_iter() 1232 prof_cnt_t *cnt_all = (prof_cnt_t *)arg; in prof_tdata_merge_iter() 1264 bool propagate_err = *(bool *)arg; in prof_tdata_dump_iter() 1447 prof_gctx_dump_iter(prof_gctx_tree_t *gctxs, prof_gctx_t *gctx, void *arg) in prof_gctx_dump_iter() argument [all …]
|
| /redis-3.2.3/deps/jemalloc/test/integration/ |
| H A D | MALLOCX_ARENA.c | 14 thd_start(void *arg) in thd_start() argument 16 unsigned thread_ind = (unsigned)(uintptr_t)arg; in thd_start()
|
| H A D | thread_arena.c | 6 thd_start(void *arg) in thd_start() argument 8 unsigned main_arena_ind = *(unsigned *)arg; in thd_start()
|
| /redis-3.2.3/tests/unit/ |
| H A D | slowlog.tcl | 53 set arg [string repeat A 129] 54 r sadd set foo $arg
|
| /redis-3.2.3/deps/jemalloc/test/include/test/ |
| H A D | thd.h | 8 void thd_create(thd_t *thd, void *(*proc)(void *), void *arg);
|