Home
last modified time | relevance | path

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

1234

/lighttpd1.4/src/
H A Dmod_evhost.c73 for (; bptr->ptr; ++bptr) free(bptr->ptr); in mod_evhost_parse_pattern_err()
84 for(pos=ptr;*ptr;ptr++) { in mod_evhost_parse_pattern()
91 if (ptr[1] == '%' || ptr[1] == '_' || light_isdigit(ptr[1])) { in mod_evhost_parse_pattern()
216 char *ptr = authority->ptr + buffer_clen(authority); in mod_evhost_parse_host() local
226 do { --ptr; } while (ptr > authority->ptr && ptr[-1] != ']'); in mod_evhost_parse_host()
230 ptr = authority->ptr; in mod_evhost_parse_host()
236 for(; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
247 if (*ptr == '.') ptr++; in mod_evhost_parse_host()
253 for(ptr = colon - 1, i = 1; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
281 for (const char *ptr; (ptr = path_pieces->ptr); ++path_pieces) { in mod_evhost_build_doc_root_path() local
[all …]
H A Dfdlog_maint.c30 fdlog_st **ptr; member
48 fdlog_pipe *ptr; member
102 fdlog_pipe * const fdp = fdlog_pipes.ptr+i; in fdlog_pipes_restart()
113 fdlog_pipe * const fdp = fdlog_pipes.ptr+i; in fdlog_pipes_waitpid_cb()
134 free(fdlog_pipes.ptr); in fdlog_pipes_close()
135 fdlog_pipes.ptr = NULL; in fdlog_pipes_close()
260 if (memrel && b->ptr) buffer_free_ptr(b); in fdlog_files_flush()
302 free(fdlog_files.ptr); in fdlog_files_close()
303 fdlog_files.ptr = NULL; in fdlog_files_close()
324 if (b->ptr) buffer_free_ptr(b); in fdlog_flushall()
[all …]
H A Dmod_auth.c852 r->uri.path.ptr, user, r->dst_addr_buf->ptr); in mod_auth_check_basic()
1295 const char *ptr = dp->ptr[e_userstar]; in mod_auth_digest_validate_userstar() local
1300 ptr += 5; in mod_auth_digest_validate_userstar()
1303 ptr += 10; in mod_auth_digest_validate_userstar()
1308 || !(ptr = memchr(ptr, '\'', in mod_auth_digest_validate_userstar()
1314 ++ptr; in mod_auth_digest_validate_userstar()
1318 buffer_copy_string_len(tb, ptr, len-(uint32_t)(ptr - dp->ptr[e_userstar])); in mod_auth_digest_validate_userstar()
1331 for (ptr = tb->ptr; *ptr; ++ptr) { in mod_auth_digest_validate_userstar()
1351 if ((!dp->ptr[e_qop] || (dp->ptr[e_nc] && dp->ptr[e_cnonce])) in mod_auth_digest_validate_params()
1389 && (!dp->ptr[e_nonce] || !dp->ptr[e_cnonce])) { in mod_auth_digest_validate_params()
[all …]
H A Dmod_accesslog.c146 format_field ptr[1]; member
493 const char * const ptr = fstr->ptr; in mod_accesslog_process_format() local
497 memmove(fstr->ptr, fstr->ptr+6, len-6); /*"begin:"*/ in mod_accesslog_process_format()
501 memmove(fstr->ptr, fstr->ptr+4, len-4); /*"end:"*/ in mod_accesslog_process_format()
534 const char * const ptr = fstr->ptr; in mod_accesslog_process_format() local
555 const char * const ptr = fstr->ptr; in mod_accesslog_process_format() local
576 const char * const ptr = fstr->ptr; in mod_accesslog_process_format() local
636 char *str = vb->ptr; in accesslog_append_cookie()
692 char *ptr; in accesslog_append_time() local
711 ptr = b->ptr + buffer_clen(b); in accesslog_append_time()
[all …]
H A Dbuffer.c27 free(b->ptr); in buffer_free()
32 free(b->ptr); in buffer_free_ptr()
33 b->ptr = NULL; in buffer_free_ptr()
61 b->ptr = realloc(b->ptr, sz); in __attribute_nonnull__()
64 return b->ptr; in __attribute_nonnull__()
74 free(b->ptr); in __attribute_nonnull__()
88 ? b->ptr in buffer_string_prepare_copy()
170 ? b->ptr in buffer_copy_string_len()
472 memcpy(b->ptr+offset, replace->ptr, rlen); in buffer_substr_replace()
734 if (s - ptr) buffer_append_string_len(b, ptr, s - ptr); in buffer_append_bs_escaped()
[all …]
H A Dmod_magnet.c455 const char *ptr; member
465 cb.ptr = NULL; in magnet_checkconstbuffer()
475 *(const char **)&b->ptr = cb.ptr ? cb.ptr : ""; in magnet_checkbuffer()
1024 lua_pushlstring(L, b->ptr, (size_t)(p - b->ptr)); in magnet_quoteddec()
1045 if (s.ptr[i] == '"' || s.ptr[i] == '\\') in magnet_quotedenc()
1050 lua_pushlstring(L, b->ptr, (size_t)(p - b->ptr)); in magnet_quotedenc()
1067 memcpy(d, ptr, (size_t)(s - ptr)); in magnet_buffer_append_bsdec()
1150 const char *ptr = s.ptr; in magnet_bsdec() local
1152 if (ptr[0] == '"' && ptr[len-1] == '"') { in magnet_bsdec()
1154 ++ptr; in magnet_bsdec()
[all …]
H A Dconfigparser.y214 if (b->ptr[0] == '\\' && b->ptr[1] == '.') in configparser_simplify_regex()
222 else if (b->ptr[0] == '^') { in configparser_simplify_regex()
233 memmove(b->ptr, b->ptr+1, len-1); in configparser_simplify_regex()
317 && !(rvalue->ptr[0] == '[' && rvalue->ptr[1] == ']') in configparser_parse_condition()
318 && !(rvalue->ptr[0] == '/' || rvalue->ptr[0] == '\\')) { /*(UDS)*/ in configparser_parse_condition()
407 ctx->current->key.ptr, A->ptr); in key()
415 ctx->current->key.ptr, B->key.ptr); in key()
430 ctx->current->key.ptr, A->ptr); in key()
452 ctx->current->key.ptr, A->ptr); in key()
578 B->key.ptr); in aelements()
[all …]
H A Dnetwork.c148 const char *s = abstract->ptr; in network_abstract_socket_dec()
187 abstract->ptr); in network_abstract_socket_parse()
218 h = host->ptr; in network_host_parse_addr()
235 h = tb->ptr; in network_host_parse_addr()
242 h = tb->ptr+1; in network_host_parse_addr()
334 const char * const p = b->ptr; in network_srv_token_colon()
385 host = host_token->ptr; in network_server_init()
422 host = host_token->ptr; in network_server_init()
610 free(srv->srv_sockets.ptr); in network_close()
611 srv->srv_sockets.ptr = NULL; in network_close()
[all …]
H A Dmod_ajp13.c509 const char * const ptr = r->server_name->ptr; in ajp13_enc_server_name() local
673 uint8_t *ptr = in ajp13_expand_headers() local
687 ptr += 2; in ajp13_expand_headers()
692 ptr += 2; in ajp13_expand_headers()
697 ptr += len+1; in ajp13_expand_headers()
701 ptr += 2; in ajp13_expand_headers()
706 ptr += 2; in ajp13_expand_headers()
740 ptr += 2; in ajp13_expand_headers()
744 ptr += len+1; in ajp13_expand_headers()
800 if (ptr[0] != 'A' || ptr[1] != 'B') { in ajp13_recv_parse_loop()
[all …]
H A Ddata_config.c28 ds->comp_key = ds->key.ptr + (src->comp_key - src->key.ptr); in data_config_copy()
39 free(ds->key.ptr); in data_config_free()
40 free(ds->comp_tag.ptr); in data_config_free()
45 free(ds->string.ptr); in data_config_free()
92 (char *)errbuf, erroff, dc->string.ptr); in data_config_pcre_compile()
102 (char *)errbuf, dc->string.ptr); in data_config_pcre_compile()
118 dc->string.ptr); in data_config_pcre_compile()
138 dc->string.ptr, errptr, erroff); in data_config_pcre_compile()
147 dc->string.ptr, errptr); in data_config_pcre_compile()
156 dc->string.ptr); in data_config_pcre_compile()
[all …]
H A Drequest.c107 const char *h = host->ptr; in request_check_hostname()
200 const char * const p = b->ptr; in http_request_host_normalize()
239 char *bracket = b->ptr+blen-1; in http_request_host_normalize()
868 if (ptr[len-2] == '\r') in http_request_parse_reqline()
888 const char *p = ptr + len - 8; in http_request_parse_reqline()
909 while (ptr[i] != ' ') ++i; in http_request_parse_reqline()
912 if (ptr[i] != ' ') in http_request_parse_reqline()
920 const char *uri = ptr + i + 1; in http_request_parse_reqline()
1052 if (r->uri.path.ptr[0] != '/') in http_request_parse_target()
1108 if (ptr[i] == ' ' || ptr[i] == '\t') { in http_request_parse_headers()
[all …]
H A Dgw_backend.c208 free(h->args.ptr); in gw_host_free()
482 ck_realloc_u32((void **)&env->ptr, env->used, 16, sizeof(*env->ptr)); in env_add()
599 ck_realloc_u32((void **)&env.ptr,env.used,1,sizeof(*env.ptr)); in gw_spawn_connection()
611 ? fdevent_fork_execve(host->args.ptr[0], host->args.ptr, in gw_spawn_connection()
616 free(env.ptr); in gw_spawn_connection()
767 char *start = b->ptr; in parse_binpath()
777 ck_realloc_u32((void**)&env->ptr,env->used,4,sizeof(*env->ptr)); in parse_binpath()
779 c = b->ptr[i]; in parse_binpath()
792 ck_realloc_u32((void **)&env->ptr, env->used, 2, sizeof(*env->ptr)); in parse_binpath()
1346 da_host->key.ptr ? da_host->key.ptr : ""); in gw_set_defaults_backend()
[all …]
H A Dmod_webdav.c2626 && 0 == linkat(AT_FDCWD, src->ptr, AT_FDCWD, tmpb->ptr, 0)) { in webdav_linktmp_rename()
2628 rc = rename(tmpb->ptr, dst->ptr); in webdav_linktmp_rename()
2658 if (0==clonefile(src->path.ptr,dst->path.ptr,CLONE_NOFOLLOW)) in webdav_copytmp_rename()
2749 if (CopyFile((LPTSTR)src->path.ptr, (LPTSTR)tmpb->ptr, TRUE)) { in webdav_copytmp_rename()
2884 if (0 == rename(tmpb->ptr, dst->path.ptr)) in webdav_copytmp_rename()
2926 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_file()
3112 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_dir()
3167 if (0 == rename(src->path.ptr, dst->path.ptr)) { in webdav_copymove_dir()
4867 if (0 == rename(pconf->tmpb->ptr, r->physical.path.ptr)) in mod_webdav_put_range()
5204 && 0 == memcmp(r->physical.path.ptr, dst_path->ptr, in mod_webdav_copymove_b()
[all …]
H A Dkeyvalue.c75 (char *)errbuf, erroff, key->ptr); in pcre_keyvalue_buffer_append()
100 "use (?:...) instead of (...): %s", key->ptr); in pcre_keyvalue_buffer_append()
122 if (NULL == (kv->key = pcre_compile(key->ptr, in pcre_keyvalue_buffer_append()
135 key->ptr, errptr); in pcre_keyvalue_buffer_append()
297 const char * const ptr = target->ptr; in pcre_keyvalue_buffer_subst_ext() local
299 burl_append(b, ptr, qmark ? (uint32_t)(qmark-ptr) : len, flags); in pcre_keyvalue_buffer_subst_ext()
316 if (NULL != strchr(b->ptr, '?')) { in pcre_keyvalue_buffer_subst_ext()
360 const char *pattern = patternb->ptr; in pcre_keyvalue_buffer_subst()
433 ctx->subject = input->ptr; in pcre_keyvalue_buffer_process()
458 const unsigned char * const s = (unsigned char *)b->ptr; in pcre_keyvalue_burl_percent_toupper()
[all …]
H A Dmod_alias.c61 if (memcmp(key->ptr, prefix->ptr, plen) != 0) { in mod_alias_check_order()
72 key->ptr, prefix->ptr); in mod_alias_check_order()
131 const char *uri_ptr = r->physical.path.ptr + basedir_len; in mod_alias_remap()
149 if (0 != alias_len && ds->key.ptr[alias_len-1] != '/' in mod_alias_remap()
150 && 0 != vlen && ds->value.ptr[vlen-1] == '/') { in mod_alias_remap()
164 uri_ptr = r->physical.path.ptr + basedir_len;/*(refresh if alloc)*/ in mod_alias_remap()
166 memmove(r->physical.path.ptr + vlen, in mod_alias_remap()
170 memcpy(r->physical.path.ptr, ds->value.ptr, vlen); in mod_alias_remap()
172 buffer_copy_string_len(&r->physical.basedir, ds->value.ptr, vlen); in mod_alias_remap()
H A Dresponse.c149 memcpy(s+2, ds->key.ptr, klen); in http_response_write_header()
153 memcpy(s+2, ds->value.ptr, vlen); in http_response_write_header()
209 "URI : %s", r->uri.path.ptr); in http_response_physical_path_error()
248 pathinfo = r->physical.path.ptr + len; in http_response_physical_path_check()
423 "Request-URI : %s", r->target.ptr); in http_response_prepare()
429 "URI-path (clean): %s", r->uri.path.ptr); in http_response_prepare()
440 && r->uri.path.ptr[0] == '*' && r->uri.path.ptr[1] == '\0') in http_response_prepare()
482 b->ptr[len - 1] == '/' && in http_response_prepare()
483 (b->ptr[len - 2] == ' ' || b->ptr[len - 2] == '.')) { in http_response_prepare()
487 while (len > 0 && ( ' ' == b->ptr[len-1] || '.' == b->ptr[len-1] ) ) --len; in http_response_prepare()
[all …]
H A Dreqpool.c214 free(r->target.ptr); in request_free_data()
215 free(r->target_orig.ptr); in request_free_data()
217 free(r->uri.scheme.ptr); in request_free_data()
218 free(r->uri.authority.ptr); in request_free_data()
219 free(r->uri.path.ptr); in request_free_data()
220 free(r->uri.query.ptr); in request_free_data()
222 free(r->physical.doc_root.ptr); in request_free_data()
223 free(r->physical.path.ptr); in request_free_data()
224 free(r->physical.basedir.ptr); in request_free_data()
227 free(r->pathinfo.ptr); in request_free_data()
[all …]
H A Dmod_magnet_cache.c25 free(sc->name.ptr); in script_free()
26 free(sc->etag.ptr); in script_free()
41 script_free(p->ptr[i]); in script_cache_free_data()
42 free(p->ptr); in script_cache_free_data()
81 int rc = luaL_loadbuffer(sc->L, buf, (size_t)sz, sc->name.ptr); in script_cache_load_script()
101 ck_realloc_u32((void **)&cache->ptr,cache->used,16,sizeof(*cache->ptr)); in __attribute_nonnull__()
102 cache->ptr[cache->used++] = sc; in __attribute_nonnull__()
113 script * const sc = cache->ptr[i]; in script_cache_get_script()
H A Dburl.c62 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_basic_unreserved_fix()
100 const unsigned char * const s = (unsigned char *)b->ptr; in burl_normalize_basic_unreserved()
212 const char * const s = b->ptr; in burl_contains_ctrls()
224 char * const s = b->ptr; in burl_normalize_qs20_to_plus_fix()
240 const char * const s = b->ptr; in burl_normalize_qs20_to_plus()
253 char * const s = b->ptr; in burl_normalize_2F_to_slash_fix()
278 const char * const s = b->ptr; in burl_normalize_2F_to_slash()
332 const char * const qmark = strchr(b->ptr, '?'); in burl_scan_qmark()
333 return qmark ? (int)(qmark - b->ptr) : -1; in burl_scan_qmark()
477 for (char *p = b->ptr+off; p[0]; ++p) { in burl_offset_tolower()
[all …]
H A Dhttp_cgi.c50 && vb->ptr[0] == '/' in http_cgi_local_redir()
51 && (0 != strncmp(vb->ptr, r->uri.path.ptr, ulen) in http_cgi_local_redir()
52 || ( vb->ptr[ulen] != '\0' in http_cgi_local_redir()
53 && vb->ptr[ulen] != '/' in http_cgi_local_redir()
54 && vb->ptr[ulen] != '?')) in http_cgi_local_redir()
60 r->target_orig.ptr); in http_cgi_local_redir()
142 s = r->target_orig.ptr; in http_cgi_headers()
232 s = r->conf.server_tag->ptr; in http_cgi_headers()
255 s = srv_sock->srv_token->ptr+n+1; in http_cgi_headers()
284 s = srv_sock->srv_token->ptr; in http_cgi_headers()
[all …]
H A Dmod_authn_gssapi.c193 log_error(errh, file, line, "%s", msg->ptr); in mod_authn_gssapi_log_gss_error()
351 putenv(ktname.ptr); in mod_authn_gssapi_check_spnego()
358 if (strchr(sprinc->ptr, '/') == NULL) { in mod_authn_gssapi_check_spnego()
368 if (strchr(sprinc->ptr, '@') == NULL) in mod_authn_gssapi_check_spnego()
375 token_s.value = sprinc->ptr; in mod_authn_gssapi_check_spnego()
399 token_in.value = t_in->ptr; in mod_authn_gssapi_check_spnego()
666 if (strchr(sprinc->ptr, '/') == NULL) { in mod_authn_gssapi_basic()
687 if (strchr(username->ptr, '@') == NULL) { in mod_authn_gssapi_basic()
693 ret = krb5_parse_name(kcontext, (user_at_realm ? user_at_realm->ptr : username->ptr), &c_princ); in mod_authn_gssapi_basic()
780 r->uri.path.ptr, username->ptr, r->dst_addr_buf->ptr); in mod_authn_gssapi_basic()
[all …]
H A Dconfigfile.c465 dyn_name = m->ptr; in config_compat_module_load()
605 "%s => %s (expect \"[enable|disable]\")", k->ptr, ds->value.ptr); in config_http_parseopts()
1331 memmove(b->ptr+1, b->ptr, buffer_clen(b)-1); in config_finalize()
1519 if (vb->ptr) { in config_print_string()
2202 ck_memzero(b->ptr, dlen); in config_parse_stdin()
2255 if (filename->ptr[strcspn(filename->ptr, "*?[]{}")] != '\0') { /*(contains glob metachars)*/ in config_parse_file()
2377 if (b->ptr[0] != '[') in config_remoteip_normalize_ipv6()
2434 if (nm_bits) b->ptr[len] = '/'; in config_remoteip_normalize()
2545 srv->srvconf.changeroot->ptr); in config_set_defaults()
2551 srv->srvconf.changeroot->ptr); in config_set_defaults()
[all …]
H A Dmod_deflate.c277 free(p->tmp_buf.ptr); in FREE_FUNC()
340 memcpy(hctx->cache_fn, fn->ptr, fnlen); in mod_deflate_cache_file_open()
812 if (0 != stat(b->ptr,&st) && 0 != mkdir_recursive(b->ptr)) { in SETDEFAULTS_FUNC()
1007 bz->next_out = hctx->output->ptr; in stream_bzip2_init()
1045 bz->next_out = hctx->output->ptr; in stream_bzip2_compress()
1085 bz->next_out = hctx->output->ptr; in stream_bzip2_flush()
1242 ZSTD_outBuffer zob = { hctx->output->ptr, in stream_zstd_compress()
1442 if (0 != unlink(fn->ptr)) in mod_deflate_using_libdeflate_err()
1526 fd = fdevent_mkostemp(fn->ptr, 0); in mod_deflate_using_libdeflate()
1957 && 0 == strncmp(if_none_match->ptr, vb->ptr, etaglen-1) in REQUEST_FUNC()
[all …]
/lighttpd1.4/src/t/
H A Dtest_mod_alias.c29 assert(0 == strcmp(r.physical.basedir.ptr, in test_mod_alias_check()
31 assert(0 == strcmp(r.physical.path.ptr, in test_mod_alias_check()
40 assert(0 == strcmp(r.physical.basedir.ptr, "/var/tmp")); in test_mod_alias_check()
41 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp")); in test_mod_alias_check()
49 assert(0 == strcmp(r.physical.basedir.ptr, "/var/tmp/")); in test_mod_alias_check()
50 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/")); in test_mod_alias_check()
89 assert(0 == strcmp(r.physical.basedir.ptr, "/ba/")); in test_mod_alias_check()
90 assert(0 == strcmp(r.physical.path.ptr, "/ba/x")); in test_mod_alias_check()
100 assert(0 == strcmp(r.physical.path.ptr, "/var/tmp/x")); in test_mod_alias_check()
103 free(r.physical.path.ptr); in test_mod_alias_check()
[all …]
H A Dtest_configfile.c65 char *slash = strchr(b->ptr, '/'); in test_configfile_addrbuf_eq_remote_ip_mask()
68 uint32_t len = slash - b->ptr; in test_configfile_addrbuf_eq_remote_ip_mask()
69 int family = strchr(b->ptr, ':') ? AF_INET6 : AF_INET; in test_configfile_addrbuf_eq_remote_ip_mask()
74 if (nm_bits) b->ptr[len]='\0'; /*(sock_addr_inet_pton() w/o CIDR mask)*/ in test_configfile_addrbuf_eq_remote_ip_mask()
75 int rc = sock_addr_inet_pton(saddr, b->ptr, family, 0); in test_configfile_addrbuf_eq_remote_ip_mask()
76 if (nm_bits) b->ptr[len]='/'; in test_configfile_addrbuf_eq_remote_ip_mask()
80 (((uintptr_t)b->ptr + b->used + 1 + 7) & ~7); in test_configfile_addrbuf_eq_remote_ip_mask()
81 int bits = ((unsigned char *)b->ptr)[b->used]; in test_configfile_addrbuf_eq_remote_ip_mask()

1234