Lines Matching refs:ptr
192 if (NULL != strstr(ds->value->ptr, "gzip")) in SETDEFAULTS_FUNC()
194 if (NULL != strstr(ds->value->ptr, "x-gzip")) in SETDEFAULTS_FUNC()
196 if (NULL != strstr(ds->value->ptr, "deflate")) in SETDEFAULTS_FUNC()
204 if (NULL != strstr(ds->value->ptr, "bzip2")) in SETDEFAULTS_FUNC()
206 if (NULL != strstr(ds->value->ptr, "x-bzip2")) in SETDEFAULTS_FUNC()
226 mkdir_recursive(s->compress_cache_dir->ptr); in SETDEFAULTS_FUNC()
228 if (0 != stat(s->compress_cache_dir->ptr, &st)) { in SETDEFAULTS_FUNC()
272 c = (unsigned char *)p->b->ptr; in deflate_file_to_buffer_gzip()
285 z.next_out = (unsigned char *)p->b->ptr + p->b->used; in deflate_file_to_buffer_gzip()
299 c = (unsigned char *)p->b->ptr + p->b->used; in deflate_file_to_buffer_gzip()
343 z.next_out = (unsigned char *)p->b->ptr; in deflate_file_to_buffer_deflate()
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()
435 buffer_append_string(p->ofn, con->physical.path->ptr + con->physical.doc_root->used - 1); in deflate_file_to_file()
460 if (-1 == mkdir_for_file(p->ofn->ptr)) { in deflate_file_to_file()
465 if (-1 == (ofd = open(p->ofn->ptr, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0600))) { 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()
550 r = write(ofd, p->b->ptr, p->b->used); in deflate_file_to_file()
571 if (-1 == unlink(p->ofn->ptr)) { in deflate_file_to_file()
600 if (-1 == (ifd = open(fn->ptr, O_RDONLY | O_BINARY))) { in deflate_file_to_buffer()
656 buffer_copy_memory(b, p->b->ptr, p->b->used + 1); in deflate_file_to_buffer()
780 if (sce->content_type->ptr) { in PHYSICALPATH_FUNC()
782 if ( (c = strchr(sce->content_type->ptr, ';')) != NULL) { in PHYSICALPATH_FUNC()
784 buffer_copy_string_len(content_type, sce->content_type->ptr, c - sce->content_type->ptr); in PHYSICALPATH_FUNC()
807 char *value = ds->value->ptr; in PHYSICALPATH_FUNC()
809 int use_etag = sce->etag != NULL && sce->etag->ptr != NULL; in PHYSICALPATH_FUNC()