| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | prof_active.c | 23 const char *func, int line) in mallctl_bool_set() argument 31 line, name); in mallctl_bool_set() 33 line, name); in mallctl_bool_set() 38 int line) in mallctl_prof_active_get_impl() argument 48 bool prof_active_new, const char *func, int line) in mallctl_prof_active_set_impl() argument 52 prof_active_new, func, line); in mallctl_prof_active_set_impl() 59 const char *func, int line) in mallctl_thread_prof_active_get_impl() argument 63 func, line); in mallctl_thread_prof_active_get_impl() 74 thread_prof_active_new, func, line); in mallctl_thread_prof_active_set_impl() 86 line); in prof_sampling_probe_impl() [all …]
|
| H A D | prof_thread_name.c | 9 int line) in mallctl_thread_name_get_impl() argument 17 func, line); in mallctl_thread_name_get_impl() 19 "%s():%d: Unexpected thread.prof.name value", func, line); in mallctl_thread_name_get_impl() 26 int line) in mallctl_thread_name_set_impl() argument 32 func, line); in mallctl_thread_name_set_impl() 33 mallctl_thread_name_get_impl(thread_name, func, line); in mallctl_thread_name_set_impl()
|
| /redis-3.2.3/deps/linenoise/ |
| H A D | example.c | 24 char *line; in main() local 58 while((line = linenoise("hello> ")) != NULL) { in main() 60 if (line[0] != '\0' && line[0] != '/') { in main() 61 printf("echo: '%s'\n", line); in main() 62 linenoiseHistoryAdd(line); /* Add to the history. */ in main() 64 } else if (!strncmp(line,"/historylen",11)) { in main() 66 int len = atoi(line+11); in main() 68 } else if (line[0] == '/') { in main() 69 printf("Unreconized command: %s\n", line); in main() 71 free(line); in main()
|
| H A D | README.markdown | 6 * Single and multi line editing mode with the usual key bindings implemented. 13 ## Can a line editing library be 20k lines of code? 22 The result is a pollution of binaries without line editing support. 74 length of the line that can be returned. 79 line is freed with the same allocator it was created. 84 while((line = linenoise("hello> ")) != NULL) { 85 printf("You wrote: %s\n", line); 86 linenoiseFree(line); /* Or just free(line) if you use libc malloc. */ 89 ## Single line VS multi line editing 97 In order to enable multi line editing use the following API call: [all …]
|
| H A D | linenoise.c | 176 int linenoiseHistoryAdd(const char *line); 1003 char *line = NULL; in linenoiseNoTTY() local 1010 char *oldval = line; in linenoiseNoTTY() 1011 line = realloc(line,maxlen); in linenoiseNoTTY() 1012 if (line == NULL) { in linenoiseNoTTY() 1020 free(line); in linenoiseNoTTY() 1023 line[len] = '\0'; in linenoiseNoTTY() 1024 return line; in linenoiseNoTTY() 1027 line[len] = c; in linenoiseNoTTY() 1100 int linenoiseHistoryAdd(const char *line) { in linenoiseHistoryAdd() argument [all …]
|
| H A D | linenoise.h | 61 int linenoiseHistoryAdd(const char *line);
|
| /redis-3.2.3/src/ |
| H A D | config.c | 1348 if (line[0] == '#' || line[0] == '\0') { 1454 sds line; local 1473 sds line; local 1486 line = sdscatlen(line, " ", 1); 1487 line = sdscatrepr(line, value, strlen(value)); 1512 sds line; local 1525 sds line; local 1585 line = sdscatlen(line, " ", 1); 1586 line = sdscatrepr(line, flags, sdslen(flags)); 1633 line = sdscatlen(line, " ", 1); [all …]
|
| H A D | zmalloc.c | 339 char line[1024]; in zmalloc_get_smap_bytes_by_field() local 345 while(fgets(line,sizeof(line),fp) != NULL) { in zmalloc_get_smap_bytes_by_field() 346 if (strncmp(line,field,flen) == 0) { in zmalloc_get_smap_bytes_by_field() 347 char *p = strchr(line,'k'); in zmalloc_get_smap_bytes_by_field() 350 bytes += strtol(line+flen,NULL,10) * 1024; in zmalloc_get_smap_bytes_by_field()
|
| H A D | scripting.c | 1722 char *ldbGetSourceLine(int line) { in ldbGetSourceLine() argument 1723 int idx = line-1; in ldbGetSourceLine() 1729 int ldbIsBreakpoint(int line) { in ldbIsBreakpoint() argument 1740 int ldbAddBreakpoint(int line) { in ldbAddBreakpoint() argument 1741 if (line <= 0 || line > ldb.lines) return 0; in ldbAddBreakpoint() 1743 ldb.bp[ldb.bpcount++] = line; in ldbAddBreakpoint() 1751 int ldbDelBreakpoint(int line) { in ldbDelBreakpoint() argument 1755 if (ldb.bp[j] == line) { in ldbDelBreakpoint() 2108 long line; in ldbBreak() local 2112 if (line == 0) { in ldbBreak() [all …]
|
| H A D | redisassert.h | 45 void _serverAssert(char *estr, char *file, int line);
|
| H A D | debug.c | 555 void _serverAssert(char *estr, char *file, int line) { in _serverAssert() argument 558 serverLog(LL_WARNING,"==> %s:%d '%s' is not true",file,line,estr); in _serverAssert() 562 server.assert_line = line; in _serverAssert() 622 void _serverAssertWithInfo(client *c, robj *o, char *estr, char *file, int line) { in _serverAssertWithInfo() argument 625 _serverAssert(estr,file,line); in _serverAssertWithInfo() 628 void _serverPanic(char *msg, char *file, int line) { in _serverPanic() argument 632 serverLog(LL_WARNING,"Guru Meditation: %s #%s:%d",msg,file,line); in _serverPanic() 915 char line[1024]; in memtest_test_linux_anonymous_maps() local 927 while(fgets(line,sizeof(line),fp) != NULL) { in memtest_test_linux_anonymous_maps() 928 char *start, *end, *p = line; in memtest_test_linux_anonymous_maps()
|
| H A D | sentinel.c | 1701 sds line; in rewriteConfigSentinelOption() local 1723 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1731 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1739 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1747 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1755 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1763 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1770 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1776 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() 1817 line = sdscatprintf(sdsempty(), in rewriteConfigSentinelOption() [all …]
|
| H A D | redis-cli.c | 1208 if (config.eval_ldb && (strstr(line,"eval ") == line || in cliSplitArgs() 1209 strstr(line,"e ") == line)) in cliSplitArgs() 1213 int len = strlen(line); in cliSplitArgs() 1215 argv[0] = sdsnewlen(line,elen-1); in cliSplitArgs() 1216 argv[1] = sdsnewlen(line+elen,len-elen); in cliSplitArgs() 1219 return sdssplitargs(line,argc); in cliSplitArgs() 1265 char *line; in repl() local 1287 if (line[0] != '\0') { in repl() 1288 argv = cliSplitArgs(line,&argc); in repl() 1294 linenoiseFree(line); in repl() [all …]
|
| /redis-3.2.3/tests/ |
| H A D | instances.tcl | 108 while {[gets $fd line] >= 0} { 109 if {[string match $start_pattern $line]} { 113 if {$found} {puts $line} 177 set line [gets stdin] 178 set argv [split $line " "] 240 set errcode [catch {eval $line} retval] 346 foreach line [split $info "\n"] { 347 set line [string trim $line "\r\n "] 348 if {[string range $line 0 $fl] eq $field} { 349 return [string range $line [expr {$fl+1}] end]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lparser.c | 501 int line = ls->linenumber; in constructor() local 580 new_fs.f->linedefined = line; in body() 613 int line = ls->linenumber; in funcargs() local 616 if (line != ls->lastline) in funcargs() 652 luaK_fixline(fs, line); in funcargs() 1094 int line; in forlist() local 1105 line = ls->linenumber; in forlist() 1275 ifstat(ls, line); in statement() 1279 whilestat(ls, line); in statement() 1289 forstat(ls, line); in statement() [all …]
|
| H A D | print.c | 87 int line=getline(f,pc); in PrintCode() local 89 if (line>0) printf("[%d]\t",line); else printf("[-]\t"); in PrintCode()
|
| /redis-3.2.3/tests/support/ |
| H A D | server.tcl | 181 foreach line $data { 182 if {[string length $line] > 0 && [string index $line 0] ne "#"} { 183 set elements [split $line " "] 272 set line [exec head -n1 $stdout] 273 if {[string match {*already in use*} $line]} { 274 error_and_quit $config_file $line
|
| H A D | redis.tcl | 240 set line [gets $fd] 241 if {$line eq {}} return ;# No complete line available, return 242 switch -exact -- [string index $line 0] { 244 + {redis_call_callback $id reply [string range $line 1 end-1]} 245 - {redis_call_callback $id err [string range $line 1 end-1]} 248 [expr [string range $line 1 end-1]+2] 257 dict set ::redis::state($id) mbulk [string range $line 1 end-1]
|
| H A D | cluster.tcl | 95 foreach line [split $nodes_descr "\n"] { 96 set line [string trim $line] 97 if {$line eq {}} continue 98 set args [split $line " "]
|
| H A D | util.tcl | 35 foreach line $lines { 36 if {[string match {*REDIS BUG REPORT START*} $line]} { 39 if {[regexp {^\[\d+\]\s+\d+\s+\w+\s+\d{2}:\d{2}:\d{2} \#} $line]} { 43 lappend result $line
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | trace-globals.lua | 16 local line=t.currentline 18 if line>=0 then io.write(":",line) end
|
| H A D | README | 5 Here is a one-line summary of each program: 9 echo.lua echo command line arguments
|
| /redis-3.2.3/utils/ |
| H A D | speed-regression.tcl | 52 foreach line [split $output "\n"] { 53 lassign [split $line ","] key value 65 foreach line [split $output "\n"] { 66 lassign [split $line ","] key value
|
| H A D | build-static-symbols.tcl | 9 while {[gets $fd line] != -1} { 10 if {[regexp {^static +[A-z0-9]+[ *]+([A-z0-9]*)\(} $line - sym]} {
|
| /redis-3.2.3/deps/jemalloc/bin/ |
| H A D | jeprof.in | 1373 $map .= $line; 1542 my $line = shift; 1750 if ($line != $last_touched_line && $disasm{$line} ne '') { 1848 my $line = shift; 1875 if (($line < 0) || ($line > $#{$lines})) { 1969 $line = "?\n"; 1978 $line); 3673 my $line = ""; 3688 return $line; 4208 my $line; [all …]
|