| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | data_string.c | 13 buffer_copy_string_buffer(ds->value, src->value); in data_string_copy() 22 buffer_free(ds->value); in data_string_free() 32 buffer_reset(ds->value); in data_string_reset() 39 if (ds_dst->value->used) { in data_string_insert_dup() 41 buffer_append_string_buffer(ds_dst->value, ds_src->value); in data_string_insert_dup() 43 buffer_copy_string_buffer(ds_dst->value, ds_src->value); in data_string_insert_dup() 55 if (ds_dst->value->used) { in data_response_insert_dup() 59 buffer_append_string_buffer(ds_dst->value, ds_src->value); in data_response_insert_dup() 61 buffer_copy_string_buffer(ds_dst->value, ds_src->value); in data_response_insert_dup() 76 if (ds->value->used < 1) { in data_string_print() [all …]
|
| H A D | mod_auth.c | 132 for (j = 0; j < dc->value->used; j++) { in mod_auth_patch_connection() 133 data_unset *du = dc->value->data[j]; in mod_auth_patch_connection() 234 http_authorization = ds->value->ptr; in mod_auth_uri_handler() 237 if (ds && ds->value && ds->value->used) { in mod_auth_uri_handler() 440 for (n = 0; n < da->value->used; n++) { in SETDEFAULTS_FUNC() 458 method = ((data_string *)(da_file->value->data[m]))->value->ptr; in SETDEFAULTS_FUNC() 460 realm = ((data_string *)(da_file->value->data[m]))->value->ptr; in SETDEFAULTS_FUNC() 462 require = ((data_string *)(da_file->value->data[m]))->value->ptr; in SETDEFAULTS_FUNC() 467 da_file->value->data[m]->key, in SETDEFAULTS_FUNC() 476 da_file->value->data[m]->key, in SETDEFAULTS_FUNC() [all …]
|
| H A D | configparser.y | 47 array_print(dc->value, 0); in configparser_get_variable() 64 buffer_append_long(ds->value, ((data_integer*)op2)->value); in configparser_merge_data() 68 buffer_append_long(ds->value, ((data_integer*)op1)->value); in configparser_merge_data() 69 buffer_append_string_buffer(ds->value, ((data_string*)op2)->value); in configparser_merge_data() 80 buffer_append_string_buffer(((data_string *)op1)->value, ((data_string *)op2)->value); in configparser_merge_data() 83 ((data_integer *)op1)->value += ((data_integer *)op2)->value; in configparser_merge_data() 231 expression(A) ::= value(B). { in expression() 236 value(A) ::= key(B). { in value() function 263 value(A) ::= STRING(B). { in value() function 270 value(A) ::= INTEGER(B). { in value() function [all …]
|
| H A D | keyvalue.c | 114 for (i = 0; kv[i].value; i++) { in keyvalue_get_value() 115 if (kv[i].key == k) return kv[i].value; in keyvalue_get_value() 122 for (i = 0; kv[i].value; i++) { in keyvalue_get_key() 123 if (0 == strcmp(kv[i].value, s)) return kv[i].key; in keyvalue_get_key() 157 kvb->kv[kvb->used]->value = strdup(value); in keyvalue_buffer_append() 168 if (kvb->kv[i]->value) free(kvb->kv[i]->value); in keyvalue_buffer_free() 208 kvb->kv[kvb->used]->value = strdup(value); in s_keyvalue_buffer_append() 220 if (kvb->kv[i]->value) free(kvb->kv[i]->value); in s_keyvalue_buffer_free() 361 kv->value = buffer_init_string(value); in pcre_keyvalue_buffer_append() 368 UNUSED(value); in pcre_keyvalue_buffer_append() [all …]
|
| H A D | mod_cml_lua.c | 153 size_t key = 0, value = 0; 161 if (ds->value->ptr[0] == '\0' || 162 ds->value->ptr[0] == '=' || 167 switch(ds->value->ptr[i]) { 174 value = i + 1; 182 buffer_copy_string_len(p->session_id, ds->value->ptr + value, i - value); 187 value = 0; 192 if (is_key == 0 && value == i) value = i + 1; 196 buffer_copy_string_len(p->session_id, ds->value->ptr + value, i - value); 414 tbuf.ptr = ds->value->ptr; in cache_parse_lua() [all …]
|
| H A D | configfile-glue.c | 45 for (j = 0; j < da->value->used; j++) { in config_insert_values_internal() 46 if (da->value->data[j]->type == TYPE_STRING) { in config_insert_values_internal() 49 buffer_copy_string_buffer(ds->value, ((data_string *)(da->value->data[j]))->value); in config_insert_values_internal() 100 if (ds->value->ptr && *ds->value->ptr) { in config_insert_values_internal() 102 long l = strtol(ds->value->ptr, &e, 10); in config_insert_values_internal() 129 if (ds->value->ptr && *ds->value->ptr) { in config_insert_values_internal() 131 long l = strtol(ds->value->ptr, &e, 10); in config_insert_values_internal() 410 l = ds->value; in config_check_cond_nocache() 419 l = ds->value; in config_check_cond_nocache() 428 l = ds->value; in config_check_cond_nocache() [all …]
|
| H A D | request.c | 287 char *value = NULL, *key = NULL; in http_request_parse() local 594 value = cur + 1; in http_request_parse() 630 value = cur; in http_request_parse() 789 buffer_append_string(ds->value, value); in http_request_parse() 797 s_len = cur - value; in http_request_parse() 801 (value[s_len - 1] == ' ' || in http_request_parse() 804 value[s_len] = '\0'; in http_request_parse() 812 buffer_copy_string_len(ds->value, value, s_len); in http_request_parse() 965 ds->value->ptr)) { in http_request_parse() 1027 value = NULL; in http_request_parse() [all …]
|
| H A D | mod_proxy.c | 250 for (j = 0; j < da->value->used; j++) { in SETDEFAULTS_FUNC() 425 buffer_copy_string(ds_dst->value, value); in proxy_set_header() 437 buffer_append_string(ds_dst->value, value); in proxy_append_header() 474 if (ds->value->used && ds->key->used) { in proxy_create_env() 565 char *key, *value; in proxy_response_parse() local 597 key_len = value - key; in proxy_response_parse() 599 value++; in proxy_response_parse() 601 while (*value == ' ' || *value == '\t') value++; in proxy_response_parse() 636 buffer_copy_string(ds->value, value); in proxy_response_parse() 885 data_unset *du = dc->value->data[j]; in mod_proxy_patch_connection() [all …]
|
| H A D | data_array.c | 12 array_free(ds->value); in data_array_copy() 13 ds->value = array_init_array(src->value); in data_array_copy() 22 array_free(ds->value); in data_array_free() 32 array_reset(ds->value); in data_array_reset() 46 array_print(ds->value, depth); in data_array_print() 55 ds->value = array_init(); in data_array_init()
|
| H A D | mod_usertrack.c | 154 for (j = 0; j < dc->value->used; j++) { in mod_usertrack_patch_connection() 155 data_unset *du = dc->value->data[j]; in mod_usertrack_patch_connection() 192 if (NULL != (g = strstr(ds->value->ptr, p->conf.cookie_name->ptr))) { in URIHANDLER_FUNC() 214 buffer_copy_string_buffer(ds->value, p->conf.cookie_name); in URIHANDLER_FUNC() 215 buffer_append_string_len(ds->value, CONST_STR_LEN("=")); in URIHANDLER_FUNC() 234 buffer_append_string_encoded(ds->value, (char *)h, 16, ENCODING_HEX); in URIHANDLER_FUNC() 235 buffer_append_string_len(ds->value, CONST_STR_LEN("; Path=/")); in URIHANDLER_FUNC() 236 buffer_append_string_len(ds->value, CONST_STR_LEN("; Version=1")); in URIHANDLER_FUNC() 239 buffer_append_string_len(ds->value, CONST_STR_LEN("; Domain=")); in URIHANDLER_FUNC() 244 buffer_append_string_len(ds->value, CONST_STR_LEN("; max-age=")); in URIHANDLER_FUNC() [all …]
|
| H A D | mod_rewrite.c | 16 buffer *value; member 103 kvb->ptr[kvb->used]->value = buffer_init(); in rewrite_rule_buffer_append() 104 buffer_copy_string_buffer(kvb->ptr[kvb->used]->value, value); in rewrite_rule_buffer_append() 117 if (kvb->ptr[i]->value) buffer_free(kvb->ptr[i]->value); in rewrite_rule_buffer_free() 178 for (j = 0; j < da->value->used; j++) { in parse_config_entry() 190 ((data_string *)(da->value->data[j]))->value, in parse_config_entry() 305 for (j = 0; j < dc->value->used; j++) { in mod_rewrite_patch_connection() 306 data_unset *du = dc->value->data[j]; in mod_rewrite_patch_connection() 375 pattern = rule->value->ptr; in process_rewrite_rules() 376 pattern_len = rule->value->used - 1; in process_rewrite_rules() [all …]
|
| H A D | mod_redirect.c | 96 ca = ((data_config *)srv->config_context->data[i])->value; in SETDEFAULTS_FUNC() 116 for (j = 0; j < da->value->used; j++) { in SETDEFAULTS_FUNC() 117 if (da->value->data[j]->type != TYPE_STRING) { in SETDEFAULTS_FUNC() 121 "[", da->value->data[j]->key, "](string)"); in SETDEFAULTS_FUNC() 128 ((data_string *)(da->value->data[j]))->value->ptr)) { in SETDEFAULTS_FUNC() 131 "pcre-compile failed for", da->value->data[j]->key); in SETDEFAULTS_FUNC() 156 for (j = 0; j < dc->value->used; j++) { in mod_redirect_patch_connection() 157 data_unset *du = dc->value->data[j]; in mod_redirect_patch_connection() 199 pattern = kv->value->ptr; in mod_redirect_uri_handler() 200 pattern_len = kv->value->used - 1; in mod_redirect_uri_handler() [all …]
|
| H A D | http-header-glue.c | 75 …t(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen) { in response_header_insert() argument 84 buffer_copy_string_len(ds->value, value, vallen); in response_header_insert() 91 …e(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen) { in response_header_overwrite() argument 98 buffer_copy_string(ds->value, value); in response_header_overwrite() 103 return response_header_insert(srv, con, key, keylen, value, vallen); in response_header_overwrite() 106 …d(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen) { in response_header_append() argument 113 buffer_append_string_len(ds->value, CONST_STR_LEN(", ")); in response_header_append() 114 buffer_append_string_len(ds->value, value, vallen); in response_header_append() 118 return response_header_insert(srv, con, key, keylen, value, vallen); in response_header_append()
|
| H A D | keyvalue.h | 46 char *value; member 52 char *value; member 61 buffer *value; member 96 int keyvalue_buffer_append(keyvalue_buffer *kvb, int k, const char *value); 100 int s_keyvalue_buffer_append(s_keyvalue_buffer *kvb, const char *key, const char *value); 108 …e_buffer_append(struct server *srv, pcre_keyvalue_buffer *kvb, const char *key, const char *value);
|
| H A D | mod_access.c | 76 …if (0 != config_insert_values_global(srv, ((data_config *)srv->config_context->data[i])->value, cv… in SETDEFAULTS_FUNC() 101 for (j = 0; j < dc->value->used; j++) { in mod_access_patch_connection() 102 data_unset *du = dc->value->data[j]; in mod_access_patch_connection() 141 int ct_len = ds->value->used - 1; in URIHANDLER_FUNC() 146 if (ds->value->used == 0) continue; in URIHANDLER_FUNC() 151 if (0 == strncasecmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC() 155 if (0 == strncmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC() 166 "url denied as we match:", ds->value); in URIHANDLER_FUNC()
|
| H A D | status_counter.c | 29 di->value = 0; in status_counter_get_counter() 41 di->value++; in status_counter_inc() 49 if (di->value > 0) di->value--; in status_counter_dec() 57 di->value = val; in status_counter_set()
|
| H A D | data_integer.c | 13 ds->value = src->value; in data_integer_copy() 30 ds->value = 0; in data_integer_reset() 45 fprintf(stdout, "%d", ds->value); in data_integer_print() 55 ds->value = 0; in data_integer_init()
|
| H A D | mod_flv_streaming.c | 99 …if (0 != config_insert_values_global(srv, ((data_config *)srv->config_context->data[i])->value, cv… in SETDEFAULTS_FUNC() 124 for (j = 0; j < dc->value->used; j++) { in mod_flv_streaming_patch_connection() 125 data_unset *du = dc->value->data[j]; in mod_flv_streaming_patch_connection() 170 buffer_copy_string_len(ds->value, val, strlen(val)); in split_get_params() 202 int ct_len = ds->value->used - 1; in URIHANDLER_FUNC() 205 if (ds->value->used == 0) continue; in URIHANDLER_FUNC() 207 if (0 == strncmp(con->physical.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC() 225 if (get_param->value->used < 2) return HANDLER_GO_ON; in URIHANDLER_FUNC() 228 start = strtol(get_param->value->ptr, &err, 10); in URIHANDLER_FUNC()
|
| H A D | data_config.c | 13 array_free(ds->value); in data_config_copy() 14 ds->value = array_init_array(src->value); in data_config_copy() 25 array_free(ds->value); in data_config_free() 43 array_reset(ds->value); in data_config_reset() 56 array *a = (array *)ds->value; in data_config_print() 126 ds->value = array_init(); in data_config_init()
|
| H A D | configparser.c | 50 array_print(dc->value, 0); in configparser_get_variable() 67 buffer_append_long(ds->value, ((data_integer*)op2)->value); in configparser_merge_data() 71 buffer_append_long(ds->value, ((data_integer*)op1)->value); in configparser_merge_data() 72 buffer_append_string_buffer(ds->value, ((data_string*)op2)->value); in configparser_merge_data() 83 buffer_append_string_buffer(((data_string *)op1)->value, ((data_string *)op2)->value); in configparser_merge_data() 86 ((data_integer *)op1)->value += ((data_integer *)op2)->value; in configparser_merge_data() 89 array *dst = ((data_array *)op1)->value; in configparser_merge_data() 90 array *src = ((data_array *)op2)->value; in configparser_merge_data() 871 array *vars = ctx->current->value; in yy_reduce() 897 array_insert_unique(ctx->current->value, du); in yy_reduce() [all …]
|
| H A D | mod_setenv.c | 115 …if (0 != config_insert_values_global(srv, ((data_config *)srv->config_context->data[i])->value, cv… in SETDEFAULTS_FUNC() 142 for (j = 0; j < dc->value->used; j++) { in mod_setenv_patch_connection() 143 data_unset *du = dc->value->data[j]; in mod_setenv_patch_connection() 189 buffer_copy_string_buffer(ds_dst->value, ds->value); in URIHANDLER_FUNC() 203 buffer_copy_string_buffer(ds_dst->value, ds->value); in URIHANDLER_FUNC() 211 response_header_insert(srv, con, CONST_BUF_LEN(ds->key), CONST_BUF_LEN(ds->value)); in URIHANDLER_FUNC()
|
| H A D | mod_indexfile.c | 97 …if (0 != config_insert_values_global(srv, ((data_config *)srv->config_context->data[i])->value, cv… in SETDEFAULTS_FUNC() 122 for (j = 0; j < dc->value->used; j++) { in mod_indexfile_patch_connection() 123 data_unset *du = dc->value->data[j]; in mod_indexfile_patch_connection() 158 if (ds->value && ds->value->ptr[0] == '/') { in URIHANDLER_FUNC() 165 buffer_append_string_buffer(p->tmp_buf, ds->value); in URIHANDLER_FUNC() 194 buffer_append_string_buffer(con->uri.path, ds->value); in URIHANDLER_FUNC()
|
| /mOS-networking-stack/util/ |
| H A D | http_parsing.c | 41 char* value, int value_len) in http_header_str_val() argument 53 *value = 0; in http_header_str_val() 64 *value = 0; in http_header_str_val() 70 value[i++] = *temp++; in http_header_str_val() 71 value[i] = 0; in http_header_str_val() 72 return (i == 0) ? NULL : value; in http_header_str_val() 80 char value[C_TYPE_LEN]; in http_header_long_val() local 94 http_get_url(char * data, int data_len, char* value, int value_len) in http_get_url() argument 101 *value = 0; in http_get_url() 111 value[i++] = *temp++; in http_get_url() [all …]
|
| /mOS-networking-stack/core/src/ |
| H A D | config.c | 44 #define TRY_ASSIGN_NUM(name, base, item, value) \ argument 47 && (sscanf(value, \ 55 #define TRY_ASSIGN_STR(name, base, item, value) \ argument 59 (strcpy((base)->name, value), 1) : 0) 158 strncpy(value, line, (size_t)(end - line)); in ReadItemValue() 169 char value[STR_LEN + 1] = {0}; in FeedAppConfLine() local 193 char value[STR_LEN + 1] = {0}; in FeedMosConfLine() local 215 SetMultiProcessSupport(value); in FeedMosConfLine() 1128 uint64_t value; in PatchCONFIG() local 1130 value = g_config.mos->cpu_mask; in PatchCONFIG() [all …]
|
| H A D | key_value_store.c | 54 kvs_insert(kvs_t *ht, _key_t const key, void * const value) in kvs_insert() argument 62 assert(value); in kvs_insert() 81 ent->value = value; in kvs_insert() 109 return walk->value; in kvs_remove() 130 return walk->value; in kvs_search()
|