Lines Matching refs:ptr

277     free(p->tmp_buf.ptr);  in FREE_FUNC()
330 etag->ptr+1, buffer_clen(etag)-2); in mod_deflate_cache_file_name()
340 memcpy(hctx->cache_fn, fn->ptr, fnlen); in mod_deflate_cache_file_open()
353 if (0 != fdevent_rename(hctx->cache_fn, fn->ptr)) in mod_deflate_cache_file_finish()
606 "unrecognized param: %s", du->key.ptr); in mod_deflate_parse_params()
622 if (NULL != strstr(ds->value.ptr, "gzip")) in mod_deflate_encodings_to_flags()
625 if (NULL != strstr(ds->value.ptr, "deflate")) in mod_deflate_encodings_to_flags()
633 if (NULL != strstr(ds->value.ptr, "bzip2")) in mod_deflate_encodings_to_flags()
638 if (NULL != strstr(ds->value.ptr, "br")) in mod_deflate_encodings_to_flags()
642 if (NULL != strstr(ds->value.ptr, "zstd")) in mod_deflate_encodings_to_flags()
748 if (len > 2 && mimetype->ptr[len-1] == '*') in SETDEFAULTS_FUNC()
795 ? strtod(cpv->v.b->ptr, NULL) in SETDEFAULTS_FUNC()
809 if (len > 0 && '/' == b->ptr[len-1]) in SETDEFAULTS_FUNC()
812 if (0 != stat(b->ptr,&st) && 0 != mkdir_recursive(b->ptr)) { in SETDEFAULTS_FUNC()
814 "can't stat %s %s", cpk[cpv->k_id].k, b->ptr); in SETDEFAULTS_FUNC()
886 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_init()
928 if (0 != stream_http_chunk_append_mem(hctx, hctx->output->ptr, len)) in stream_deflate_compress()
930 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_compress()
968 if (0 != stream_http_chunk_append_mem(hctx, hctx->output->ptr, len)) in stream_deflate_flush()
970 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_flush()
1007 bz->next_out = hctx->output->ptr; in stream_bzip2_init()
1043 if (0 != stream_http_chunk_append_mem(hctx, hctx->output->ptr, len)) in stream_bzip2_compress()
1045 bz->next_out = hctx->output->ptr; in stream_bzip2_compress()
1083 if (0 != stream_http_chunk_append_mem(hctx, hctx->output->ptr, len)) in stream_bzip2_flush()
1085 bz->next_out = hctx->output->ptr; in stream_bzip2_flush()
1135 if (0 == strncmp(vb->ptr, "text/", sizeof("text/")-1) in stream_br_init()
1136 || (0 == strncmp(vb->ptr, "application/", sizeof("application/")-1) in stream_br_init()
1137 && (0 == strncmp(vb->ptr+12,"javascript",sizeof("javascript")-1) in stream_br_init()
1138 || 0 == strncmp(vb->ptr+12,"json", sizeof("json")-1) in stream_br_init()
1139 || 0 == strncmp(vb->ptr+12,"xml", sizeof("xml")-1))) in stream_br_init()
1141 && (0 == strncmp(vb->ptr+len-5, "+json", sizeof("+json")-1) in stream_br_init()
1142 || 0 == strncmp(vb->ptr+len-4, "+xml", sizeof("+xml")-1)))) in stream_br_init()
1144 else if (0 == strncmp(vb->ptr, "font/", sizeof("font/")-1)) in stream_br_init()
1242 ZSTD_outBuffer zob = { hctx->output->ptr, in stream_zstd_compress()
1270 ZSTD_outBuffer zob = { hctx->output->ptr, in stream_zstd_flush()
1417 "uri %s in=%lld smaller than out=%lld", r->target.ptr, in deflate_compress_cleanup()
1442 if (0 != unlink(fn->ptr)) in mod_deflate_using_libdeflate_err()
1463 char * const in = hctx->r->write_queue.first->mem->ptr; in mod_deflate_using_libdeflate_sm()
1468 ? libdeflate_gzip_compress(compressor, in, in_nbytes, addrb->ptr, sz) in mod_deflate_using_libdeflate_sm()
1469 : libdeflate_zlib_compress(compressor, in, in_nbytes, addrb->ptr, sz); in mod_deflate_using_libdeflate_sm()
1479 if (0 != stream_http_chunk_append_mem(hctx, addrb->ptr, sz)) in mod_deflate_using_libdeflate_sm()
1526 fd = fdevent_mkostemp(fn->ptr, 0); in mod_deflate_using_libdeflate()
1575 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_using_libdeflate()
1623 "reading %s failed", c->mem->ptr); in mod_deflate_file_chunk_no_mmap()
1626 "file truncated %s", c->mem->ptr); in mod_deflate_file_chunk_no_mmap()
1663 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_file_chunk_mmap()
1676 … if (-1 == (c->file.fd = fdevent_open_cloexec(c->mem->ptr, r->conf.follow_symlink, O_RDONLY, 0))) { in mod_deflate_file_chunk()
1677 log_perror(r->conf.errh, __FILE__, __LINE__, "open failed %s", c->mem->ptr); in mod_deflate_file_chunk()
1718 if (mod_deflate_compress(hctx, (unsigned char *)c->mem->ptr+c->offset, len) < 0) { in deflate_compress_response()
1728 "compress file chunk failed %s", c->mem->ptr); in deflate_compress_response()
1925 compression_type = mod_deflate_choose_encoding(vbro->ptr, p, &label); in REQUEST_FUNC()
1957 && 0 == strncmp(if_none_match->ptr, vb->ptr, etaglen-1) in REQUEST_FUNC()
1958 && if_none_match->ptr[etaglen-1] == '-' in REQUEST_FUNC()
1959 && 0 == strncmp(if_none_match->ptr+etaglen, label, strlen(label))) { in REQUEST_FUNC()
1963 vb->ptr[etaglen-1] = '-'; /*(overwrite end '"')*/ in REQUEST_FUNC()
1992 vb->ptr[etaglen-1] = '-'; /*(overwrite end '"')*/ in REQUEST_FUNC()
2062 else if (0 != mkdir_for_file(tb->ptr)) in REQUEST_FUNC()
2137 vb->ptr[etaglen-1] = '"'; /*(overwrite '-')*/ in REQUEST_FUNC()