Lines Matching refs:ptr
276 if (0 == strncmp(du->key.ptr, "ssl.", sizeof("ssl.")-1)) { in config_warn_openssl_module()
426 else if (0 == strncmp(m->ptr, "mod_auth", sizeof("mod_auth")-1)) { in config_compat_module_load()
444 else if (0 == strncmp(m->ptr, "mod_vhostdb", sizeof("mod_vhostdb")-1)) { in config_compat_module_load()
450 else if ( 0 == strncmp(m->ptr, "mod_ajp13", in config_compat_module_load()
452 || 0 == strncmp(m->ptr, "mod_cgi", in config_compat_module_load()
454 || 0 == strncmp(m->ptr, "mod_fastcgi", in config_compat_module_load()
456 || 0 == strncmp(m->ptr, "mod_proxy", in config_compat_module_load()
458 || 0 == strncmp(m->ptr, "mod_scgi", in config_compat_module_load()
460 || 0 == strncmp(m->ptr, "mod_sockproxy", in config_compat_module_load()
462 || 0 == strncmp(m->ptr, "mod_wstunnel", in config_compat_module_load()
465 dyn_name = m->ptr; in config_compat_module_load()
560 if (0 == strncmp(k->ptr, "compress.", sizeof("compress.")-1)) { in config_deprecate_module_compress()
605 "%s => %s (expect \"[enable|disable]\")", k->ptr, ds->value.ptr); in config_http_parseopts()
648 "unrecognized key for server.http-parseopts: %s", k->ptr); in config_http_parseopts()
869 srv->srvconf.event_handler = cpv->v.b->ptr; in config_insert_srvconf()
916 stat_cache_xattrname(cpv->v.b->ptr); in config_insert_srvconf()
1111 for (char *t=strchr(b->ptr,'\n'); t; t=strchr(t+2,'\n')) { in config_insert()
1116 off_t off = t - b->ptr; in config_insert()
1119 t = b->ptr+off; in config_insert()
1124 char *t = b->ptr; /*(make empty if tag is whitespace-only)*/ in config_insert()
1131 memcpy(b->ptr+buffer_clen(b)+1, "server", 6); in config_insert()
1280 if (strncmp(k->ptr, "var.", sizeof("var.") - 1) == 0) in config_finalize()
1283 if (strncmp(k->ptr, "dir-listing.", sizeof("dir-listing.") - 1) == 0 in config_finalize()
1284 && strcmp(k->ptr, "dir-listing.activate") != 0) in config_finalize()
1290 "WARNING: unknown config-key: %s (ignored)", k->ptr); in config_finalize()
1329 if (dc->cond != CONFIG_COND_SUFFIX || b->ptr[0] == '.') { in config_finalize()
1331 memmove(b->ptr+1, b->ptr, buffer_clen(b)-1); in config_finalize()
1332 b->ptr[0] = (dc->cond == CONFIG_COND_SUFFIX) ? '\\' : '^'; in config_finalize()
1519 if (vb->ptr) { in config_print_string()
1520 for (const char *p = vb->ptr; *p; ++p) { in config_print_string()
1667 if (0 == strcmp(syslog_facility->ptr, f->name)) { in config_log_error_open_syslog()
1676 syslog_facility->ptr); in config_log_error_open_syslog()
1712 if (!buffer_is_blank(cpv->v.b)) fn = cpv->v.b->ptr; in config_log_error_open()
2090 if (0 == strcmp(token->ptr, "include")) in config_tokenizer()
2092 else if (0 == strcmp(token->ptr, "include_shell")) in config_tokenizer()
2094 else if (0 == strcmp(token->ptr, "global")) in config_tokenizer()
2096 else if (0 == strcmp(token->ptr, "else")) in config_tokenizer()
2162 "configfile parser failed at: %s", lasttoken->ptr); in config_parse()
2166 t.source, t.line, t.offset - t.line_pos, lasttoken->ptr); in config_parse()
2193 n = read(STDIN_FILENO, b->ptr+dlen, avail); in config_parse_stdin()
2197 rc = dlen ? config_parse(srv, context, "-", b->ptr, (int)dlen) : 0; in config_parse_stdin()
2202 ck_memzero(b->ptr, dlen); in config_parse_stdin()
2246 switch (glob(filename->ptr, flags, NULL, &gl)) { in config_parse_file()
2255 if (filename->ptr[strcspn(filename->ptr, "*?[]{}")] != '\0') { /*(contains glob metachars)*/ in config_parse_file()
2259 log_error(srv->errh, __FILE__, __LINE__, "include file not found: %s", filename->ptr); in config_parse_file()
2264 log_perror(srv->errh, __FILE__, __LINE__, "glob() %s failed", filename->ptr); in config_parse_file()
2299 if (0 != chdir(context->basedir->ptr)) { in config_parse_cmd()
2301 "cannot change directory to %s", context->basedir->ptr); in config_parse_cmd()
2377 if (b->ptr[0] != '[') in config_remoteip_normalize_ipv6()
2389 if (blen > 1) buffer_copy_string_len(b, tb->ptr+1, blen-2); in config_remoteip_normalize_ipv6()
2395 if (b->ptr[0] == '/') return 1; /*(skip AF_UNIX /path/file)*/ in config_remoteip_normalize()
2397 const char * const slash = strchr(b->ptr, '/'); /* CIDR mask */ in config_remoteip_normalize()
2398 const char * const colon = strchr(b->ptr, ':'); /* IPv6 */ in config_remoteip_normalize()
2408 buffer_truncate(b, (size_t)(slash - b->ptr)); in config_remoteip_normalize()
2432 if (nm_bits) b->ptr[len] = '\0'; /*(sock_addr_inet_pton() w/o CIDR mask)*/ in config_remoteip_normalize()
2433 rc = sock_addr_inet_pton(addr, b->ptr, family, 0); in config_remoteip_normalize()
2434 if (nm_bits) b->ptr[len] = '/'; in config_remoteip_normalize()
2542 if (-1 == stat(srv->srvconf.changeroot->ptr, &st1)) { in config_set_defaults()
2545 srv->srvconf.changeroot->ptr); in config_set_defaults()
2551 srv->srvconf.changeroot->ptr); in config_set_defaults()
2578 if (-1 == stat(tb->ptr, &st1)) { in config_set_defaults()
2580 "server.upload-dirs doesn't exist: %s", tb->ptr); in config_set_defaults()
2583 "server.upload-dirs isn't a directory: %s", tb->ptr); in config_set_defaults()
2603 if (0 == stat(tb->ptr, &st1)) { in config_set_defaults()
2622 } else if (0 == stat(tb->ptr, &st2)) { in config_set_defaults()