Lines Matching refs:value

48     char *value;  member
301 tokens[ntokens].value = s; in tokenize_command()
317 tokens[ntokens].value = s; in tokenize_command()
326 tokens[ntokens].value = *e == '\0' ? NULL : e; in tokenize_command()
372 || strcmp(tokens[0].value, "set") != 0 in try_read_command_asciiauth()
373 || !safe_strtoul(tokens[4].value, &size)) { in try_read_command_asciiauth()
427 if (authfile_check(tokens[0].value, tokens[1].value) == 1) { in try_read_command_asciiauth()
514 if (tokens[noreply_index].value in set_noreply_maybe()
515 && strcmp(tokens[noreply_index].value, "noreply") == 0) { in set_noreply_maybe()
560 if (!safe_strtol(tokens[1].value, &exptime_int)) { in process_get_command()
571 key = key_token->value; in process_get_command()
681 if (key_token->value != NULL) { in process_get_command()
682 ntokens = tokenize_command(key_token->value, tokens, MAX_TOKENS); in process_get_command()
689 } while(key_token->value != NULL); in process_get_command()
700 if (key_token->value != NULL) { in process_get_command()
743 const char *subcommand = tokens[SUBCOMMAND_TOKEN].value; in process_stat()
763 process_stats_detail(c, tokens[2].value); in process_stat()
782 if (!safe_strtoul(tokens[2].value, &id) || in process_stat()
783 !safe_strtoul(tokens[3].value, &limit)) { in process_stat()
846 char *key = tokens[KEY_TOKEN].value; in process_meta_command()
849 if (ntokens >= 4 && tokens[2].length == 1 && tokens[2].value[0] == 'b') { in process_meta_command()
912 unsigned int value :1; member
939 uint8_t o = (uint8_t)tokens[i].value[0]; in _meta_flag_preparse()
950 … ret = base64_decode((unsigned char *)tokens[KEY_TOKEN].value, tokens[KEY_TOKEN].length, in _meta_flag_preparse()
951 (unsigned char *)tokens[KEY_TOKEN].value, tokens[KEY_TOKEN].length); in _meta_flag_preparse()
966 if (!safe_strtol(tokens[i].value+1, &tmp_int)) { in _meta_flag_preparse()
975 if (!safe_strtol(tokens[i].value+1, &tmp_int)) { in _meta_flag_preparse()
985 if (!safe_strtol(tokens[i].value+1, &tmp_int)) { in _meta_flag_preparse()
1007 of->value = 1; in _meta_flag_preparse()
1023 if (!safe_strtoflags(tokens[i].value+1, &of->client_flags)) { in _meta_flag_preparse()
1028 if (!safe_strtoull(tokens[i].value+1, &of->req_cas_id)) { in _meta_flag_preparse()
1036 if (!safe_strtoull(tokens[i].value+1, &of->cas_id_in)) { in _meta_flag_preparse()
1048 of->mode = tokens[i].value[1]; in _meta_flag_preparse()
1052 if (!safe_strtoull(tokens[i].value+1, &of->initial)) { in _meta_flag_preparse()
1058 if (!safe_strtoull(tokens[i].value+1, &of->delta)) { in _meta_flag_preparse()
1117 key = tokens[KEY_TOKEN].value; in process_mget_command()
1159 if (of.value) { in process_mget_command()
1168 switch (tokens[i].value[0]) { in process_mget_command()
1237 memcpy(p, tokens[i].value, tokens[i].length); in process_mget_command()
1274 if (of.value) { in process_mget_command()
1301 if ((it->it_flags & ITEM_HDR) != 0 && of.value) { in process_mget_command()
1362 switch (tokens[i].value[0]) { in process_mget_command()
1370 memcpy(p, tokens[i].value, tokens[i].length); in process_mget_command()
1432 if (!safe_strtol(tokens[KEY_TOKEN + 1].value, (int32_t*)&vlen)) { in process_mset_command()
1450 key = tokens[KEY_TOKEN].value; in process_mset_command()
1461 switch (tokens[i].value[0]) { in process_mset_command()
1470 memcpy(p, tokens[i].value, tokens[i].length); in process_mset_command()
1646 key = tokens[KEY_TOKEN].value; in process_mdelete_command()
1650 switch (tokens[i].value[0]) { in process_mdelete_command()
1658 memcpy(p, tokens[i].value, tokens[i].length); in process_mdelete_command()
1803 key = tokens[KEY_TOKEN].value; in process_marithmetic_command()
1898 if (of.value) { in process_marithmetic_command()
1907 switch (tokens[i].value[0]) { in process_marithmetic_command()
1937 memcpy(p, tokens[i].value, tokens[i].length); in process_marithmetic_command()
1946 if (of.value) { in process_marithmetic_command()
1958 switch (tokens[i].value[0]) { in process_marithmetic_command()
1966 memcpy(p, tokens[i].value, tokens[i].length); in process_marithmetic_command()
2012 key = tokens[KEY_TOKEN].value; in process_update_command()
2015 if (! (safe_strtoflags(tokens[2].value, &flags) in process_update_command()
2016 && safe_strtol(tokens[3].value, &exptime_int) in process_update_command()
2017 && safe_strtol(tokens[4].value, (int32_t *)&vlen))) { in process_update_command()
2026 if (!safe_strtoull(tokens[5].value, &req_cas_id)) { in process_update_command()
2111 key = tokens[KEY_TOKEN].value; in process_touch_command()
2114 if (!safe_strtol(tokens[2].value, &exptime_int)) { in process_touch_command()
2154 key = tokens[KEY_TOKEN].value; in process_arithmetic_command()
2157 if (!safe_strtoull(tokens[2].value, &delta)) { in process_arithmetic_command()
2198 bool hold_is_zero = strcmp(tokens[KEY_TOKEN+1].value, "0") == 0; in process_delete_command()
2210 key = tokens[KEY_TOKEN].value; in process_delete_command()
2251 if (!safe_strtoul(tokens[1].value, (uint32_t*)&level)) { in process_verbosity_command()
2285 if (strcmp(tokens[1].value, "p") == 0) { in process_debugtime_command()
2289 } else if (strcmp(tokens[1].value, "r") == 0) { in process_debugtime_command()
2295 if (!safe_strtoll(tokens[1].value, &time_delta)) { in process_debugtime_command()
2314 if (strcmp(tokens[2].value, "ratio") == 0) { in process_slabs_automove_command()
2315 if (ntokens < 5 || !safe_strtod(tokens[3].value, &ratio)) { in process_slabs_automove_command()
2321 if (!safe_strtoul(tokens[2].value, (uint32_t*)&level)) { in process_slabs_automove_command()
2357 if ((strcmp(tokens[x].value, "rawcmds") == 0)) { in process_watch_command()
2359 } else if ((strcmp(tokens[x].value, "evictions") == 0)) { in process_watch_command()
2361 } else if ((strcmp(tokens[x].value, "fetchers") == 0)) { in process_watch_command()
2363 } else if ((strcmp(tokens[x].value, "mutations") == 0)) { in process_watch_command()
2365 } else if ((strcmp(tokens[x].value, "sysevents") == 0)) { in process_watch_command()
2367 } else if ((strcmp(tokens[x].value, "connevents") == 0)) { in process_watch_command()
2369 } else if ((strcmp(tokens[x].value, "proxyreqs") == 0)) { in process_watch_command()
2371 } else if ((strcmp(tokens[x].value, "proxyevents") == 0)) { in process_watch_command()
2373 } else if ((strcmp(tokens[x].value, "proxyuser") == 0)) { in process_watch_command()
2375 } else if ((strcmp(tokens[x].value, "deletions") == 0)) { in process_watch_command()
2406 if (!safe_strtoul(tokens[1].value, &memlimit)) { in process_memlimit_command()
2436 if (strcmp(tokens[1].value, "tune") == 0 && ntokens >= 7) { in process_lru_command()
2437 if (!safe_strtoul(tokens[2].value, &pct_hot) || in process_lru_command()
2438 !safe_strtoul(tokens[3].value, &pct_warm) || in process_lru_command()
2439 !safe_strtod(tokens[4].value, &hot_factor) || in process_lru_command()
2440 !safe_strtod(tokens[5].value, &factor)) { in process_lru_command()
2455 } else if (strcmp(tokens[1].value, "mode") == 0 && ntokens >= 4 && in process_lru_command()
2457 if (strcmp(tokens[2].value, "flat") == 0) { in process_lru_command()
2460 } else if (strcmp(tokens[2].value, "segmented") == 0) { in process_lru_command()
2466 } else if (strcmp(tokens[1].value, "temp_ttl") == 0 && ntokens >= 4 && in process_lru_command()
2468 if (!safe_strtol(tokens[2].value, &ttl)) { in process_lru_command()
2489 } else if (strcmp(tokens[1].value, "free_memchunks") == 0 && ntokens > 4) { in process_extstore_command()
2493 if (!safe_strtoul(tokens[2].value, &clsid) || in process_extstore_command()
2494 !safe_strtoul(tokens[3].value, &limit)) { in process_extstore_command()
2503 } else if (strcmp(tokens[1].value, "item_size") == 0) { in process_extstore_command()
2504 if (!safe_strtoul(tokens[2].value, &settings.ext_item_size)) in process_extstore_command()
2506 } else if (strcmp(tokens[1].value, "item_age") == 0) { in process_extstore_command()
2507 if (!safe_strtoul(tokens[2].value, &settings.ext_item_age)) in process_extstore_command()
2509 } else if (strcmp(tokens[1].value, "low_ttl") == 0) { in process_extstore_command()
2510 if (!safe_strtoul(tokens[2].value, &settings.ext_low_ttl)) in process_extstore_command()
2512 } else if (strcmp(tokens[1].value, "recache_rate") == 0) { in process_extstore_command()
2513 if (!safe_strtoul(tokens[2].value, &settings.ext_recache_rate)) in process_extstore_command()
2515 } else if (strcmp(tokens[1].value, "compact_under") == 0) { in process_extstore_command()
2516 if (!safe_strtoul(tokens[2].value, &settings.ext_compact_under)) in process_extstore_command()
2518 } else if (strcmp(tokens[1].value, "drop_under") == 0) { in process_extstore_command()
2519 if (!safe_strtoul(tokens[2].value, &settings.ext_drop_under)) in process_extstore_command()
2521 } else if (strcmp(tokens[1].value, "max_sleep") == 0) { in process_extstore_command()
2522 if (!safe_strtoul(tokens[2].value, &settings.ext_max_sleep)) in process_extstore_command()
2524 } else if (strcmp(tokens[1].value, "max_frag") == 0) { in process_extstore_command()
2525 if (!safe_strtod(tokens[2].value, &settings.ext_max_frag)) in process_extstore_command()
2527 } else if (strcmp(tokens[1].value, "drop_unread") == 0) { in process_extstore_command()
2529 if (!safe_strtoul(tokens[2].value, &v)) { in process_extstore_command()
2561 if (!safe_strtol(tokens[1].value, &exptime)) { in process_flush_all_command()
2604 } else if (ntokens == 3 && strcmp(tokens[SUBCOMMAND_TOKEN].value, "graceful") == 0) { in process_shutdown_command()
2614 if (ntokens == 5 && strcmp(tokens[COMMAND_TOKEN + 1].value, "reassign") == 0) { in process_slabs_command()
2622 if (! (safe_strtol(tokens[2].value, (int32_t*)&src) in process_slabs_command()
2623 && safe_strtol(tokens[3].value, (int32_t*)&dst))) { in process_slabs_command()
2648 (strcmp(tokens[COMMAND_TOKEN + 1].value, "automove") == 0)) { in process_slabs_command()
2656 if (ntokens == 4 && strcmp(tokens[COMMAND_TOKEN + 1].value, "crawl") == 0) { in process_lru_crawler_command()
2663 rv = lru_crawler_crawl(tokens[2].value, CRAWLER_EXPIRED, NULL, 0, in process_lru_crawler_command()
2683 } else if (ntokens == 4 && strcmp(tokens[COMMAND_TOKEN + 1].value, "metadump") == 0) { in process_lru_crawler_command()
2697 int rv = lru_crawler_crawl(tokens[2].value, CRAWLER_METADUMP, in process_lru_crawler_command()
2724 } else if (ntokens == 4 && strcmp(tokens[COMMAND_TOKEN + 1].value, "mgdump") == 0) { in process_lru_crawler_command()
2738 int rv = lru_crawler_crawl(tokens[2].value, CRAWLER_MGDUMP, in process_lru_crawler_command()
2759 } else if (ntokens == 4 && strcmp(tokens[COMMAND_TOKEN + 1].value, "tocrawl") == 0) { in process_lru_crawler_command()
2761 if (!safe_strtoul(tokens[2].value, &tocrawl)) { in process_lru_crawler_command()
2768 } else if (ntokens == 4 && strcmp(tokens[COMMAND_TOKEN + 1].value, "sleep") == 0) { in process_lru_crawler_command()
2770 if (!safe_strtoul(tokens[2].value, &tosleep)) { in process_lru_crawler_command()
2782 if ((strcmp(tokens[COMMAND_TOKEN + 1].value, "enable") == 0)) { in process_lru_crawler_command()
2788 } else if ((strcmp(tokens[COMMAND_TOKEN + 1].value, "disable") == 0)) { in process_lru_crawler_command()
2857 char first = tokens[COMMAND_TOKEN].value[0]; in process_command_ascii()
2859 switch (tokens[COMMAND_TOKEN].value[1]) { in process_command_ascii()
2887 if (strcmp(tokens[COMMAND_TOKEN].value, "get") == 0) { in process_command_ascii()
2890 } else if (strcmp(tokens[COMMAND_TOKEN].value, "gets") == 0) { in process_command_ascii()
2893 } else if (strcmp(tokens[COMMAND_TOKEN].value, "gat") == 0) { in process_command_ascii()
2896 } else if (strcmp(tokens[COMMAND_TOKEN].value, "gats") == 0) { in process_command_ascii()
2903 if (strcmp(tokens[COMMAND_TOKEN].value, "set") == 0 && (comm = NREAD_SET)) { in process_command_ascii()
2907 } else if (strcmp(tokens[COMMAND_TOKEN].value, "stats") == 0) { in process_command_ascii()
2910 } else if (strcmp(tokens[COMMAND_TOKEN].value, "shutdown") == 0) { in process_command_ascii()
2913 } else if (strcmp(tokens[COMMAND_TOKEN].value, "slabs") == 0) { in process_command_ascii()
2920 if ((strcmp(tokens[COMMAND_TOKEN].value, "add") == 0 && (comm = NREAD_ADD)) || in process_command_ascii()
2921 (strcmp(tokens[COMMAND_TOKEN].value, "append") == 0 && (comm = NREAD_APPEND)) ) { in process_command_ascii()
2929 if (strcmp(tokens[COMMAND_TOKEN].value, "cas") == 0 && (comm = NREAD_CAS)) { in process_command_ascii()
2933 } else if (strcmp(tokens[COMMAND_TOKEN].value, "cache_memlimit") == 0) { in process_command_ascii()
2941 if (strcmp(tokens[COMMAND_TOKEN].value, "incr") == 0) { in process_command_ascii()
2949 if (strcmp(tokens[COMMAND_TOKEN].value, "delete") == 0) { in process_command_ascii()
2953 } else if (strcmp(tokens[COMMAND_TOKEN].value, "decr") == 0) { in process_command_ascii()
2958 } else if (strcmp(tokens[COMMAND_TOKEN].value, "debugtime") == 0) { in process_command_ascii()
2966 if (strcmp(tokens[COMMAND_TOKEN].value, "touch") == 0) { in process_command_ascii()
2974 (strcmp(tokens[COMMAND_TOKEN].value, "replace") == 0 && (comm = NREAD_REPLACE)) || in process_command_ascii()
2975 (strcmp(tokens[COMMAND_TOKEN].value, "prepend") == 0 && (comm = NREAD_PREPEND)) ) { in process_command_ascii()
2980 } else if (strcmp(tokens[COMMAND_TOKEN].value, "bget") == 0) { in process_command_ascii()
2987 } else if (strcmp(tokens[COMMAND_TOKEN].value, "flush_all") == 0) { in process_command_ascii()
2992 } else if (strcmp(tokens[COMMAND_TOKEN].value, "version") == 0) { in process_command_ascii()
2996 } else if (strcmp(tokens[COMMAND_TOKEN].value, "quit") == 0) { in process_command_ascii()
3000 } else if (strcmp(tokens[COMMAND_TOKEN].value, "lru_crawler") == 0) { in process_command_ascii()
3004 } else if (strcmp(tokens[COMMAND_TOKEN].value, "watch") == 0) { in process_command_ascii()
3008 } else if (strcmp(tokens[COMMAND_TOKEN].value, "verbosity") == 0) { in process_command_ascii()
3011 } else if (strcmp(tokens[COMMAND_TOKEN].value, "lru") == 0) { in process_command_ascii()
3016 } else if (strcmp(tokens[COMMAND_TOKEN].value, "misbehave") == 0) { in process_command_ascii()
3020 } else if (strcmp(tokens[COMMAND_TOKEN].value, "extstore") == 0) { in process_command_ascii()
3025 } else if (strcmp(tokens[COMMAND_TOKEN].value, "refresh_certs") == 0) { in process_command_ascii()
3029 if (strncmp(tokens[ntokens - 2].value, "HTTP/", 5) == 0) { in process_command_ascii()