Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 90) sorted by relevance

1234

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_evhost.c75 char *ptr = s->path_pieces_raw->ptr,*pos; in mod_evhost_parse_pattern() local
79 for(pos=ptr;*ptr;ptr++) { in mod_evhost_parse_pattern()
86 pos = ptr + 2; in mod_evhost_parse_pattern()
175 for(;ptr > con->uri.authority->ptr;ptr--) { in mod_evhost_parse_host()
180 colon = ptr; in mod_evhost_parse_host()
189 if (*ptr == '.') ptr++; in mod_evhost_parse_host()
190 buffer_copy_string_len(ds->value, ptr, colon-ptr); in mod_evhost_parse_host()
197 for(ptr = colon - 1, i = 1; ptr > con->uri.authority->ptr; ptr--) { in mod_evhost_parse_host()
204 buffer_copy_string_len(ds->value,ptr+1,colon-ptr-1); in mod_evhost_parse_host()
217 buffer_copy_string_len(ds->value,ptr,colon-ptr); in mod_evhost_parse_host()
[all …]
H A Dmod_accesslog.c119 format_field **ptr; member
160 char *ptr, *start, *end; in accesslog_append_escaped() local
167 for (ptr = start = str->ptr, end = str->ptr + str->used - 1; ptr < end; ptr++) { in accesslog_append_escaped()
168 char const c = *ptr; in accesslog_append_escaped()
173 if (start < ptr) { in accesslog_append_escaped()
176 start = ptr + 1; in accesslog_append_escaped()
225 switch(format->ptr[i]) { in accesslog_parse_format()
235 fields->ptr = realloc(fields->ptr, fields->size * sizeof(format_field * )); in accesslog_parse_format()
255 fields->ptr = realloc(fields->ptr, fields->size * sizeof(format_field * )); in accesslog_parse_format()
387 fields->ptr = realloc(fields->ptr, fields->size * sizeof(format_field * )); in accesslog_parse_format()
[all …]
H A Dbuffer.c25 b->ptr = NULL; in buffer_init()
46 free(b->ptr); in buffer_free()
55 free(b->ptr); in buffer_reset()
56 b->ptr = NULL; in buffer_reset()
88 assert(b->ptr); in buffer_prepare_copy()
119 b->ptr = realloc(b->ptr, b->size); in buffer_prepare_append()
449 if (b->ptr[i]) buffer_free(b->ptr[i]); in buffer_array_free()
451 free(b->ptr); in buffer_array_free()
460 b->ptr = malloc(sizeof(*b->ptr) * b->size); in buffer_array_append_get_buffer()
467 b->ptr = realloc(b->ptr, sizeof(*b->ptr) * b->size); in buffer_array_append_get_buffer()
[all …]
H A Djoblist.c13 srv->joblist->ptr = malloc(sizeof(*srv->joblist->ptr) * srv->joblist->size); in joblist_append()
16 srv->joblist->ptr = realloc(srv->joblist->ptr, sizeof(*srv->joblist->ptr) * srv->joblist->size); in joblist_append()
19 srv->joblist->ptr[srv->joblist->used++] = con; in joblist_append()
27 free(joblist->ptr); in joblist_free()
38 con = fdwaitqueue->ptr[0]; in fdwaitqueue_unshift()
40 …memmove(fdwaitqueue->ptr, &(fdwaitqueue->ptr[1]), --fdwaitqueue->used * sizeof(*(fdwaitqueue->ptr)… in fdwaitqueue_unshift()
48 srv->fdwaitqueue->ptr = malloc(sizeof(*(srv->fdwaitqueue->ptr)) * srv->fdwaitqueue->size); in fdwaitqueue_append()
51 …srv->fdwaitqueue->ptr = realloc(srv->fdwaitqueue->ptr, sizeof(*(srv->fdwaitqueue->ptr)) * srv->f… in fdwaitqueue_append()
54 srv->fdwaitqueue->ptr[srv->fdwaitqueue->used++] = con; in fdwaitqueue_append()
61 free(fdwaitqueue->ptr); in fdwaitqueue_free()
H A Drequest.c42 if (host->ptr[0] == '[') { in request_check_hostname()
43 char *c = host->ptr + 1; in request_check_hostname()
82 host_len = colon - host->ptr; in request_check_hostname()
89 if (host->ptr[host_len-1] == '.') { in request_check_hostname()
92 else host->ptr[host_len-1] = '\0'; in request_check_hostname()
101 const char c = host->ptr[i]; in request_check_hostname()
172 if ('-' == host->ptr[i+1]) { in request_check_hostname()
227 current = b->ptr; in http_request_split_value()
495 con->request.uri->ptr[j]); in http_request_parse()
869 char c = ds->value->ptr[j]; in http_request_parse()
[all …]
H A Dmod_cgi.c44 char **ptr; member
51 pid_t *ptr; member
138 if (r->ptr) free(r->ptr); in FREE_FUNC()
193 if (r->ptr[i] > m) m = r->ptr[i]; in cgi_pid_add()
198 r->ptr = malloc(sizeof(*r->ptr) * r->size); in cgi_pid_add()
201 r->ptr = realloc(r->ptr, sizeof(*r->ptr) * r->size); in cgi_pid_add()
223 r->ptr[i] = r->ptr[r->used - 1]; in cgi_pid_del()
727 env->ptr = malloc(env->size * sizeof(*env->ptr)); in cgi_env_add()
730 env->ptr = realloc(env->ptr, env->size * sizeof(*env->ptr)); in cgi_env_add()
802 env.ptr = NULL; in cgi_create_env()
[all …]
H A Dhttp_auth.c672 } else if (password->ptr[0] == '$' && password->ptr[2] == '$') { in http_auth_basic_password_compare()
894 if (http_auth_match_rules(srv, p, url->ptr, username->ptr, NULL, NULL)) { in http_auth_basic_check()
915 char **ptr; member
962 dkv[0].ptr = &username; in http_auth_digest_check()
963 dkv[1].ptr = &realm; in http_auth_digest_check()
964 dkv[2].ptr = &nonce; in http_auth_digest_check()
965 dkv[3].ptr = &uri; in http_auth_digest_check()
967 dkv[5].ptr = &qop; in http_auth_digest_check()
968 dkv[6].ptr = &cnonce; in http_auth_digest_check()
969 dkv[7].ptr = &nc; in http_auth_digest_check()
[all …]
H A Dconfigparser.y42 fprintf(stderr, "get var %s\n", key->ptr); in configparser_get_variable()
152 ctx->current->key->ptr, A->ptr); in key()
160 ctx->current->key->ptr, B->key->ptr); in key()
177 ctx->current->key->ptr, A->ptr); in key()
210 if (strchr(B->ptr, '.') == NULL) { in key()
297 B->key->ptr); in aelements()
488 rvalue->ptr, errptr); in SRVVARNAME()
492 rvalue->ptr); in SRVVARNAME()
496 rvalue->ptr); in SRVVARNAME()
504 B->ptr, C->ptr); in SRVVARNAME()
[all …]
H A Dmod_rewrite.c22 rewrite_rule **ptr; member
82 kvb->ptr = malloc(kvb->size * sizeof(*kvb->ptr)); in rewrite_rule_buffer_append()
85 kvb->ptr[i] = calloc(1, sizeof(**kvb->ptr)); in rewrite_rule_buffer_append()
90 kvb->ptr = realloc(kvb->ptr, kvb->size * sizeof(*kvb->ptr)); in rewrite_rule_buffer_append()
93 kvb->ptr[i] = calloc(1, sizeof(**kvb->ptr)); in rewrite_rule_buffer_append()
97 if (NULL == (kvb->ptr[kvb->used]->key = pcre_compile(key->ptr, in rewrite_rule_buffer_append()
105 kvb->ptr[kvb->used]->once = once; in rewrite_rule_buffer_append()
116 if (kvb->ptr[i]->key) pcre_free(kvb->ptr[i]->key); in rewrite_rule_buffer_free()
117 if (kvb->ptr[i]->value) buffer_free(kvb->ptr[i]->value); in rewrite_rule_buffer_free()
118 free(kvb->ptr[i]); in rewrite_rule_buffer_free()
[all …]
H A Dresponse.c199 envds->value->ptr[n] = '\0'; in https_add_ssl_entries()
295 buffer_copy_string_len(con->uri.path_raw, con->request.uri->ptr, qstr - con->request.uri->ptr); in http_response_prepare()
341 con->uri.path_raw->ptr[0] == '*' && con->uri.path_raw->ptr[1] == '\0') { in http_response_prepare()
391 con->uri.path->ptr[0] == '*' && con->uri.path_raw->ptr[1] == '\0') { in http_response_prepare()
454 b->ptr[b->used-2] == '/' && in http_response_prepare()
455 (b->ptr[b->used-3] == ' ' || in http_response_prepare()
457 b->ptr[b->used--] = '\0'; in http_response_prepare()
461 if (b->ptr[i] == ' ' || in http_response_prepare()
462 b->ptr[i] == '.') { in http_response_prepare()
463 b->ptr[b->used--] = '\0'; in http_response_prepare()
[all …]
H A Dstat_cache.c95 int *ptr; member
221 buf->ptr[attrlen] = '\0'; in stat_cache_attr_get()
231 for (s = str->ptr; *s; s++) { in hashme()
325 if (file->ptr[i] == '/') { in buffer_copy_dirname()
484 if (-1 == stat(name->ptr, &st)) { in stat_cache_get_entry()
516 ctrl.ptr = malloc(ctrl.size * sizeof(*ctrl.ptr)); in stat_cache_get_entry()
519 ctrl.ptr = realloc(ctrl.ptr, ctrl.size * sizeof(*ctrl.ptr)); in stat_cache_get_entry()
573 if (dname->ptr == s_cur) { in stat_cache_get_entry()
616 if (0 == strncasecmp(name->ptr + name->used - type->used, type->ptr, type->used - 1)) { in stat_cache_get_entry()
739 if (ctrl.ptr[j] == ndx) { in stat_cache_trigger_cleanup()
[all …]
H A Dmod_magnet_cache.c49 script_free(p->ptr[i]); in script_cache_free()
52 free(p->ptr); in script_cache_free()
63 sc = cache->ptr[i]; in script_cache_get_script()
99 cache->ptr = malloc(cache->size * sizeof(*(cache->ptr))); in script_cache_get_script()
102 cache->ptr = realloc(cache->ptr, cache->size * sizeof(*(cache->ptr))); in script_cache_get_script()
105 cache->ptr[cache->used++] = sc; in script_cache_get_script()
115 if (0 != luaL_loadfile(sc->L, name->ptr)) { in script_cache_get_script()
H A Dnetwork.c186 if (NULL == (sp = strrchr(b->ptr, ':'))) {
192 host = b->ptr;
195 if (b->ptr[0] == '[' && *(sp-1) == ']') {
481 …srv->srv_sockets.ptr = realloc(srv->srv_sockets.ptr, srv->srv_sockets.size * sizeof(server_socket)…
506 …srv->srv_sockets.ptr = realloc(srv->srv_sockets.ptr, srv->srv_sockets.size * sizeof(server_socket)…
520 srv->srv_sockets.ptr[srv->srv_sockets.used]->fd =
523 srv->srv_sockets.ptr[srv->srv_sockets.used]->addr =
560 server_socket *srv_socket = srv->srv_sockets.ptr[i];
580 free(srv->srv_sockets.ptr);
793 nid = OBJ_sn2nid((char *) s->ssl_ec_curve->ptr);
[all …]
H A Dmod_cml_lua.c108 key = qrystr->ptr; in cache_export_get_params()
112 switch(qrystr->ptr[i]) { in cache_export_get_params()
115 val = qrystr->ptr + i + 1; in cache_export_get_params()
117 qrystr->ptr[i] = '\0'; in cache_export_get_params()
129 qrystr->ptr[i] = '\0'; in cache_export_get_params()
136 key = qrystr->ptr + i + 1; in cache_export_get_params()
162 ds->value->ptr[0] == '=' ||
167 switch(ds->value->ptr[i]) {
410 tbuf.ptr = timebuf; in cache_parse_lua()
414 tbuf.ptr = ds->value->ptr; in cache_parse_lua()
[all …]
H A Dmod_ssi.c192 if (light_isalpha(ds->key->ptr[j])) { in ssi_env_add_request_headers()
194 c = ds->key->ptr[j] & ~32; in ssi_env_add_request_headers()
197 c = ds->key->ptr[j]; in ssi_env_add_request_headers()
203 ssi_env_add(p->ssi_cgi_env, srv->tmp_buf->ptr, ds->value->ptr); in ssi_env_add_request_headers()
222 c = ds->key->ptr[j] & ~32; in ssi_env_add_request_headers()
225 c = ds->key->ptr[j]; in ssi_env_add_request_headers()
231 ssi_env_add(p->ssi_cgi_env, srv->tmp_buf->ptr, ds->value->ptr); in ssi_env_add_request_headers()
281 con->authed_user->ptr); in build_ssi_cgi_vars()
562 buffer_copy_string_len(p->stat_fn, con->physical.path->ptr, sl - con->physical.path->ptr + 1); in process_ssi_stmt()
578 buffer_copy_string_len(p->stat_fn, con->uri.path->ptr, sl - con->uri.path->ptr + 1); in process_ssi_stmt()
[all …]
H A Dmod_fastcgi.c308 char **ptr; member
780 env->ptr = malloc(env->size * sizeof(*env->ptr)); in env_add()
783 env->ptr = realloc(env->ptr, env->size * sizeof(*env->ptr)); in env_add()
796 start = b->ptr; in parse_binpath()
805 env->ptr = malloc(env->size * sizeof(*env->ptr)); in parse_binpath()
808 env->ptr = realloc(env->ptr, env->size * sizeof(*env->ptr)); in parse_binpath()
824 env->ptr = malloc(env->size * sizeof(*env->ptr)); in parse_binpath()
827 env->ptr = realloc(env->ptr, env->size * sizeof(*env->ptr)); in parse_binpath()
835 env->ptr = malloc(env->size * sizeof(*env->ptr)); in parse_binpath()
838 env->ptr = realloc(env->ptr, env->size * sizeof(*env->ptr)); in parse_binpath()
[all …]
H A Dmod_auth.c214 if (0 == strncasecmp(con->uri.path->ptr, require->ptr, require->used - 1)) { in mod_auth_uri_handler()
219 if (0 == strncmp(con->uri.path->ptr, require->ptr, require->used - 1)) { in mod_auth_uri_handler()
234 http_authorization = ds->value->ptr; in mod_auth_uri_handler()
251 if (0 == strcmp(method->value->ptr, "basic")) { in mod_auth_uri_handler()
257 if (0 == strcmp(method->value->ptr, "digest")) { in mod_auth_uri_handler()
283 if (0 == strcmp(method->value->ptr, "basic")) { in mod_auth_uri_handler()
289 } else if (0 == strcmp(method->value->ptr, "digest")) { in mod_auth_uri_handler()
403 if (0 == strcmp(s->auth_backend_conf->ptr, "htpasswd")) { in SETDEFAULTS_FUNC()
430 …r_copy_string_len(s->ldap_filter_pre, s->auth_ldap_filter->ptr, dollar - s->auth_ldap_filter->ptr); in SETDEFAULTS_FUNC()
592 s->auth_ldap_cafile->ptr))) { in auth_ldap_init()
[all …]
H A Dmod_webdav.c561 dst->rel_path->ptr, in webdav_delete_file()
639 d.rel_path->ptr, in webdav_delete_dir()
717 dst->rel_path->ptr, in webdav_copy_file()
722 src->rel_path->ptr, in webdav_copy_file()
910 dst->rel_path->ptr, in webdav_get_property()
959 webdav_property **ptr; member
972 prop = props->ptr[i]; in webdav_get_props()
1302 req_props->ptr = malloc(sizeof(*(req_props->ptr)) * req_props->size); in URIHANDLER_FUNC()
1305 req_props->ptr = realloc(req_props->ptr, sizeof(*(req_props->ptr)) * req_props->size); in URIHANDLER_FUNC()
1480 free(req_props->ptr); in URIHANDLER_FUNC()
[all …]
H A Dmod_compress.c272 c = (unsigned char *)p->b->ptr; in deflate_file_to_buffer_gzip()
389 bz.next_out = p->b->ptr; in deflate_file_to_buffer_bzip2()
417 const char *filename = fn->ptr; in deflate_file_to_file()
434 …if (0 == strncmp(con->physical.path->ptr, con->physical.doc_root->ptr, con->physical.doc_root->use… in deflate_file_to_file()
489 if (-1 == unlink(p->ofn->ptr)) { in deflate_file_to_file()
504 if (-1 == unlink(p->ofn->ptr)) { in deflate_file_to_file()
520 if (-1 == unlink(p->ofn->ptr)) { in deflate_file_to_file()
571 if (-1 == unlink(p->ofn->ptr)) { in deflate_file_to_file()
780 if (sce->content_type->ptr) { in PHYSICALPATH_FUNC()
784 buffer_copy_string_len(content_type, sce->content_type->ptr, c - sce->content_type->ptr); in PHYSICALPATH_FUNC()
[all …]
H A Dconfigfile-glue.c100 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()
132 if (e != ds->value->ptr && !*e && l >= 0) { in config_insert_values_internal()
275 dc->key->ptr, in config_check_cond_nocache()
299 ck_colon = strchr(dc->string->ptr, ':'); in config_check_cond_nocache()
300 val_colon = strchr(l->ptr, ':'); in config_check_cond_nocache()
310 buffer_copy_string_len(srv->cond_check_buf, l->ptr, val_colon - l->ptr); in config_check_cond_nocache()
361 buffer_copy_string_len(srv->cond_check_buf, dc->string->ptr, nm_slash - dc->string->ptr); in config_check_cond_nocache()
[all …]
H A Dconfigparser.c45 fprintf(stderr, "get var %s\n", key->ptr); in configparser_get_variable()
848 ctx->current->key->ptr, yymsp[-2].minor.yy43->ptr); in yy_reduce()
856 ctx->current->key->ptr, yymsp[0].minor.yy41->key->ptr); in yy_reduce()
877 ctx->current->key->ptr, yymsp[-2].minor.yy43->ptr); in yy_reduce()
1036 yymsp[0].minor.yy41->key->ptr); in yy_reduce()
1267 rvalue->ptr, errptr, erroff); in yy_reduce()
1274 rvalue->ptr, errptr); in yy_reduce()
1278 rvalue->ptr); in yy_reduce()
1282 rvalue->ptr); in yy_reduce()
1290 yymsp[-5].minor.yy0->ptr, yymsp[-3].minor.yy43->ptr); in yy_reduce()
[all …]
H A Dplugin.c87 srv->plugins.ptr = realloc(srv->plugins.ptr, srv->plugins.size * sizeof(*ps)); in plugins_register()
90 ps = srv->plugins.ptr; in plugins_register()
127 char *modules = d->value->ptr; in plugins_load()
148 if (NULL == (p->lib = LoadLibrary(srv->tmp_buf->ptr))) { in plugins_load()
183 init = GetProcAddress(p->lib, srv->tmp_buf->ptr); in plugins_load()
206 *(void **)(&init) = dlsym(p->lib, srv->tmp_buf->ptr); in plugins_load()
331 ps = srv->plugins.ptr;
367 ps = srv->plugins.ptr;
438 plugin *p = ((plugin **)srv->plugins.ptr)[i]; in plugins_free()
452 free(srv->plugins.ptr); in plugins_free()
[all …]
H A Dmod_dirlisting.c46 excludes **ptr; member
101 exb->ptr = malloc(exb->size * sizeof(*exb->ptr)); in excludes_buffer_append()
104 exb->ptr[i] = calloc(1, sizeof(**exb->ptr)); in excludes_buffer_append()
109 exb->ptr = realloc(exb->ptr, exb->size * sizeof(*exb->ptr)); in excludes_buffer_append()
112 exb->ptr[i] = calloc(1, sizeof(**exb->ptr)); in excludes_buffer_append()
117 if (NULL == (exb->ptr[exb->used]->regex = pcre_compile(string->ptr, 0, in excludes_buffer_append()
141 if (exb->ptr[i]->regex) pcre_free(exb->ptr[i]->regex); in excludes_buffer_free()
142 if (exb->ptr[i]->string) buffer_free(exb->ptr[i]->string); in excludes_buffer_free()
143 free(exb->ptr[i]); in excludes_buffer_free()
146 if (exb->ptr) free(exb->ptr); in excludes_buffer_free()
[all …]
H A Dfdevent_poll.c25 if (ev->unused.ptr) free(ev->unused.ptr); in fdevent_poll_free()
46 ev->unused.ptr = malloc(sizeof(*(ev->unused.ptr)) * ev->unused.size); in fdevent_poll_event_del()
49 ev->unused.ptr = realloc(ev->unused.ptr, sizeof(*(ev->unused.ptr)) * ev->unused.size); in fdevent_poll_event_del()
52 ev->unused.ptr[ev->unused.used++] = k; in fdevent_poll_event_del()
95 int k = ev->unused.ptr[--ev->unused.used]; in fdevent_poll_event_set()
H A Ddata_config.c65 ds->comp_key->ptr, ds->op->ptr, ds->string->ptr); in data_config_print()
74 size_t len = strlen(du->key->ptr); in data_config_print()
78 fprintf(stdout, "%s", du->key->ptr); in data_config_print()
107 ds->comp_key->ptr, ds->op->ptr, ds->string->ptr); in data_config_print()

1234