Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 25 of 45) sorted by relevance

12

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Ddata_config.c22 buffer_free(ds->op); in data_config_free()
28 if (ds->string) buffer_free(ds->string); in data_config_free()
30 if (ds->regex) pcre_free(ds->regex); in data_config_free()
31 if (ds->regex_study) pcre_free(ds->regex_study); in data_config_free()
65 ds->comp_key->ptr, ds->op->ptr, ds->string->ptr); in data_config_print()
107 ds->comp_key->ptr, ds->op->ptr, ds->string->ptr); in data_config_print()
110 if (ds->next) { in data_config_print()
114 ds->next->print((data_unset *)ds->next, depth); in data_config_print()
119 data_config *ds; in data_config_init() local
121 ds = calloc(1, sizeof(*ds)); in data_config_init()
[all …]
H A Ddata_fastcgi.c15 return (data_unset *)ds; in data_fastcgi_copy()
21 buffer_free(ds->key); in data_fastcgi_free()
22 buffer_free(ds->host); in data_fastcgi_free()
30 buffer_reset(ds->key); in data_fastcgi_reset()
31 buffer_reset(ds->host); in data_fastcgi_reset()
52 data_fastcgi *ds; in data_fastcgi_init() local
54 ds = calloc(1, sizeof(*ds)); in data_fastcgi_init()
56 ds->key = buffer_init(); in data_fastcgi_init()
58 ds->port = 0; in data_fastcgi_init()
59 ds->is_disabled = 0; in data_fastcgi_init()
[all …]
H A Ddata_string.c15 return (data_unset *)ds; in data_string_copy()
21 buffer_free(ds->key); in data_string_free()
22 buffer_free(ds->value); in data_string_free()
31 buffer_reset(ds->key); in data_string_reset()
32 buffer_reset(ds->value); in data_string_reset()
96 data_string *ds; in data_string_init() local
98 ds = calloc(1, sizeof(*ds)); in data_string_init()
99 assert(ds); in data_string_init()
111 return ds; in data_string_init()
115 data_string *ds; in data_response_init() local
[all …]
H A Ddata_array.c12 array_free(ds->value); in data_array_copy()
15 return (data_unset *)ds; in data_array_copy()
21 buffer_free(ds->key); in data_array_free()
22 array_free(ds->value); in data_array_free()
31 buffer_reset(ds->key); in data_array_reset()
32 array_reset(ds->value); in data_array_reset()
50 data_array *ds; in data_array_init() local
52 ds = calloc(1, sizeof(*ds)); in data_array_init()
54 ds->key = buffer_init(); in data_array_init()
62 ds->type = TYPE_ARRAY; in data_array_init()
[all …]
H A Ddata_integer.c13 ds->value = src->value; in data_integer_copy()
14 return (data_unset *)ds; in data_integer_copy()
20 buffer_free(ds->key); in data_integer_free()
29 buffer_reset(ds->key); in data_integer_reset()
30 ds->value = 0; in data_integer_reset()
50 data_integer *ds; in data_integer_init() local
52 ds = calloc(1, sizeof(*ds)); in data_integer_init()
54 ds->key = buffer_init(); in data_integer_init()
55 ds->value = 0; in data_integer_init()
62 ds->type = TYPE_INTEGER; in data_integer_init()
[all …]
H A Ddata_count.c12 ds->count = src->count; in data_count_copy()
14 return (data_unset *)ds; in data_count_copy()
20 buffer_free(ds->key); in data_count_free()
28 buffer_reset(ds->key); in data_count_reset()
30 ds->count = 0; in data_count_reset()
53 data_count *ds; in data_count_init() local
55 ds = calloc(1, sizeof(*ds)); in data_count_init()
57 ds->key = buffer_init(); in data_count_init()
58 ds->count = 1; in data_count_init()
65 ds->type = TYPE_COUNT; in data_count_init()
[all …]
H A Drequest.c229 data_string *ds; in http_request_split_value() local
256 ds = data_string_init(); in http_request_split_value()
566 data_string *ds; in http_request_parse() local
569 ds = data_string_init(); in http_request_parse()
940 ds->free((data_unset*) ds); in http_request_parse()
941 ds = NULL; in http_request_parse()
968 ds->free((data_unset *)ds); in http_request_parse()
969 ds = NULL; in http_request_parse()
989 ds->free((data_unset*) ds); in http_request_parse()
990 ds = NULL; in http_request_parse()
[all …]
H A Dconfigfile-glue.c74 data_string *ds = (data_string *)du; in config_insert_values_internal() local
100 if (ds->value->ptr && *ds->value->ptr) { in config_insert_values_internal()
129 if (ds->value->ptr && *ds->value->ptr) { in config_insert_values_internal()
407 data_string *ds; in config_check_cond_nocache() local
410 l = ds->value; in config_check_cond_nocache()
417 data_string *ds; in config_check_cond_nocache() local
419 l = ds->value; in config_check_cond_nocache()
426 data_string *ds; in config_check_cond_nocache() local
428 l = ds->value; in config_check_cond_nocache()
446 data_string *ds; in config_check_cond_nocache() local
[all …]
H A Dmod_evhost.c171 data_string *ds; in mod_evhost_parse_host() local
185 ds = data_string_init(); in mod_evhost_parse_host()
192 array_insert_unique(host,(data_unset *)ds); in mod_evhost_parse_host()
201 ds = data_string_init(); in mod_evhost_parse_host()
203 buffer_append_long(ds->key, i++); in mod_evhost_parse_host()
206 array_insert_unique(host,(data_unset *)ds); in mod_evhost_parse_host()
214 ds = data_string_init(); in mod_evhost_parse_host()
216 buffer_append_long(ds->key, i /* ++ */); in mod_evhost_parse_host()
219 array_insert_unique(host,(data_unset *)ds); in mod_evhost_parse_host()
287 data_string *ds; in mod_evhost_uri_handler() local
[all …]
H A Dmod_ssi.c148 data_string *ds; in ssi_env_add() local
151 ds = data_string_init(); in ssi_env_add()
171 data_string *ds; in ssi_env_add_request_headers() local
175 if (ds->value->used && ds->key->used) { in ssi_env_add_request_headers()
197 c = ds->key->ptr[j]; in ssi_env_add_request_headers()
208 data_string *ds; in ssi_env_add_request_headers() local
212 if (ds->value->used && ds->key->used) { in ssi_env_add_request_headers()
225 c = ds->key->ptr[j]; in ssi_env_add_request_headers()
505 data_string *ds; in process_ssi_stmt() local
652 data_string *ds; in process_ssi_stmt() local
[all …]
H A Dmod_usertrack.c173 data_string *ds; in URIHANDLER_FUNC() local
211 ds = data_response_init(); in URIHANDLER_FUNC()
213 buffer_copy_string_len(ds->key, CONST_STR_LEN("Set-Cookie")); 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()
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()
245 buffer_append_long(ds->value, p->conf.cookie_max_age); in URIHANDLER_FUNC()
[all …]
H A Dmod_cml_lua.c152 data_string *ds = (data_string *)d;
159 if (ds->value->used == 0) return -1;
161 if (ds->value->ptr[0] == '\0' ||
162 ds->value->ptr[0] == '=' ||
167 switch(ds->value->ptr[i]) {
394 data_string *ds; in cache_parse_lua() local
403 if ((mtime) && (NULL == ds)) { in cache_parse_lua()
413 } else if (ds) { in cache_parse_lua()
414 tbuf.ptr = ds->value->ptr; in cache_parse_lua()
415 tbuf.used = ds->value->used; in cache_parse_lua()
[all …]
H A Dmod_auth.c185 data_string *ds; in mod_auth_uri_handler() local
234 http_authorization = ds->value->ptr; in mod_auth_uri_handler()
237 if (ds && ds->value && ds->value->used) { in mod_auth_uri_handler()
312 ds = data_string_init(); in mod_auth_uri_handler()
315 buffer_copy_string(ds->key, "AUTH_TYPE"); in mod_auth_uri_handler()
316 buffer_copy_string(ds->value, auth_type); in mod_auth_uri_handler()
513 data_string *ds; in SETDEFAULTS_FUNC() local
519 ds = data_string_init(); in SETDEFAULTS_FUNC()
526 ds = data_string_init(); in SETDEFAULTS_FUNC()
529 buffer_copy_string(ds->value, realm); in SETDEFAULTS_FUNC()
[all …]
H A Dhttp-header-glue.c76 data_string *ds; in response_header_insert() local
81 ds = data_response_init(); in response_header_insert()
83 buffer_copy_string_len(ds->key, key, keylen); in response_header_insert()
84 buffer_copy_string_len(ds->value, value, vallen); in response_header_insert()
86 array_insert_unique(con->response.headers, (data_unset *)ds); in response_header_insert()
92 data_string *ds; in response_header_overwrite() local
97 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) { in response_header_overwrite()
98 buffer_copy_string(ds->value, value); in response_header_overwrite()
107 data_string *ds; in response_header_append() local
113 buffer_append_string_len(ds->value, CONST_STR_LEN(", ")); in response_header_append()
[all …]
H A Darray.c132 data_unset *ds = NULL; in array_get_unused_element() local
137 ds = a->data[i]; in array_get_unused_element()
143 return ds; in array_get_unused_element()
345 data_string *ds; in main() local
353 ds = data_string_init(); in main()
354 buffer_copy_string_len(ds->key, CONST_STR_LEN("abc")); in main()
357 array_insert_unique(a, (data_unset *)ds); in main()
359 ds = data_string_init(); in main()
363 array_insert_unique(a, (data_unset *)ds); in main()
365 ds = data_string_init(); in main()
[all …]
H A Dmod_flv_streaming.c160 data_string *ds; in split_get_params() local
166 if (NULL == (ds = (data_string *)array_get_unused_element(get_params, TYPE_STRING))) { in split_get_params()
167 ds = data_string_init(); in split_get_params()
169 buffer_copy_string_len(ds->key, key, strlen(key)); in split_get_params()
170 buffer_copy_string_len(ds->value, val, strlen(val)); in split_get_params()
172 array_insert_unique(get_params, (data_unset *)ds); in split_get_params()
201 data_string *ds = (data_string *)p->conf.extensions->data[k]; in URIHANDLER_FUNC() local
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()
H A Dmod_setenv.c181 data_string *ds = (data_string *)p->conf.request_header->data[k]; in URIHANDLER_FUNC() local
188 buffer_copy_string_buffer(ds_dst->key, ds->key); in URIHANDLER_FUNC()
189 buffer_copy_string_buffer(ds_dst->value, ds->value); in URIHANDLER_FUNC()
195 data_string *ds = (data_string *)p->conf.environment->data[k]; in URIHANDLER_FUNC() local
202 buffer_copy_string_buffer(ds_dst->key, ds->key); in URIHANDLER_FUNC()
203 buffer_copy_string_buffer(ds_dst->value, ds->value); in URIHANDLER_FUNC()
209 data_string *ds = (data_string *)p->conf.response_header->data[k]; in URIHANDLER_FUNC() local
211 response_header_insert(srv, con, CONST_BUF_LEN(ds->key), CONST_BUF_LEN(ds->value)); in URIHANDLER_FUNC()
H A Dmod_cgi.c245 data_string *ds; in cgi_response_parse() local
286 ds = data_response_init(); in cgi_response_parse()
955 data_string *ds; in cgi_create_env() local
959 if (ds->value->used && ds->key->used) { in cgi_create_env()
975 cr = ds->key->ptr[j] & ~32; in cgi_create_env()
978 cr = ds->key->ptr[j]; in cgi_create_env()
989 data_string *ds; in cgi_create_env() local
993 if (ds->value->used && ds->key->used) { in cgi_create_env()
1004 cr = ds->key->ptr[j] & ~32; in cgi_create_env()
1007 cr = ds->key->ptr[j]; in cgi_create_env()
[all …]
H A Dmod_staticfile.c160 data_string *ds; in http_response_parse_range() local
174 content_type = ds->value; in http_response_parse_range()
362 data_string *ds; in URIHANDLER_FUNC() local
394 ds = (data_string *)p->conf.exclude_ext->data[k]; in URIHANDLER_FUNC()
396 if (ds->value->used == 0) continue; in URIHANDLER_FUNC()
398 if (buffer_is_equal_right_len(con->physical.path, ds->value, ds->value->used - 1)) { in URIHANDLER_FUNC()
486 mtime = ds->value; in URIHANDLER_FUNC()
498 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "If-Range"))) { in URIHANDLER_FUNC()
502 if (ds->value->ptr[0] == '"') { in URIHANDLER_FUNC()
508 } else if (!buffer_is_equal(ds->value, con->physical.etag)) { in URIHANDLER_FUNC()
[all …]
H A Dmod_alias.c164 data_string *ds = (data_string *)p->conf.alias->data[k]; in PHYSICALPATH_FUNC() local
165 int alias_len = ds->key->used - 1; in PHYSICALPATH_FUNC()
168 if (ds->key->used == 0) continue; in PHYSICALPATH_FUNC()
171 strncasecmp(uri_ptr, ds->key->ptr, alias_len) : in PHYSICALPATH_FUNC()
172 strncmp(uri_ptr, ds->key->ptr, alias_len))) { in PHYSICALPATH_FUNC()
175 buffer_copy_string_buffer(con->physical.basedir, ds->value); in PHYSICALPATH_FUNC()
176 buffer_copy_string_buffer(srv->tmp_buf, ds->value); in PHYSICALPATH_FUNC()
H A Dmod_access.c140 data_string *ds = (data_string *)p->conf.access_deny->data[k]; in URIHANDLER_FUNC() local
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 Dbuffer.c768 unsigned char *ds, *d; in buffer_append_string_encoded() local
806 for (ds = (unsigned char *)s, d_len = 0, ndx = 0; ndx < s_len; ds++, ndx++) { in buffer_append_string_encoded()
807 if (map[*ds]) { in buffer_append_string_encoded()
831 …for (ds = (unsigned char *)s, d = (unsigned char *)b->ptr + b->used - 1, d_len = 0, ndx = 0; ndx <… in buffer_append_string_encoded()
832 if (map[*ds]) { in buffer_append_string_encoded()
837 d[d_len++] = hex_chars[((*ds) >> 4) & 0x0F]; in buffer_append_string_encoded()
838 d[d_len++] = hex_chars[(*ds) & 0x0F]; in buffer_append_string_encoded()
846 d[d_len++] = hex_chars[(*ds) & 0x0F]; in buffer_append_string_encoded()
851 d[d_len++] = hex_chars[(*ds) & 0x0F]; in buffer_append_string_encoded()
854 d[d_len++] = *ds; in buffer_append_string_encoded()
[all …]
H A Dmod_expire.c241 data_string *ds = (data_string *)s->expire_url->data[k]; in SETDEFAULTS_FUNC() local
244 if (-1 == mod_expire_get_offset(srv, p, ds->value, NULL)) { in SETDEFAULTS_FUNC()
246 "parsing expire.url failed:", ds->value); in SETDEFAULTS_FUNC()
298 data_string *ds = (data_string *)p->conf.expire_url->data[k]; in URIHANDLER_FUNC() local
299 int ct_len = ds->key->used - 1; in URIHANDLER_FUNC()
302 if (ds->key->used == 0) continue; in URIHANDLER_FUNC()
304 if (0 == strncmp(con->uri.path->ptr, ds->key->ptr, ct_len)) { in URIHANDLER_FUNC()
311 switch(mod_expire_get_offset(srv, p, ds->value, &ts)) { in URIHANDLER_FUNC()
H A Dmod_magnet.c182 data_string *ds; in magnet_array_next() local
200 ds = (data_string *)du; in magnet_array_next()
201 if (ds->value && ds->value->used) { in magnet_array_next()
202 lua_pushlstring(L, ds->value->ptr, ds->value->used - 1); in magnet_array_next()
362 data_string *ds; in magnet_reqhdr_get() local
372 if (ds->value->used) { in magnet_reqhdr_get()
373 lua_pushlstring(L, ds->value->ptr, ds->value->used - 1); in magnet_reqhdr_get()
640 data_string *ds; in magnet_cgi_get() local
649 if (NULL != (ds = (data_string *)array_get_element(con->environment, key)) && ds->value->used) in magnet_cgi_get()
650 lua_pushlstring(L, CONST_BUF_LEN(ds->value)); in magnet_cgi_get()
[all …]
H A Dmod_indexfile.c156 data_string *ds = (data_string *)p->conf.indexfiles->data[k]; in URIHANDLER_FUNC() local
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()

12