| /lighttpd1.4/src/ |
| H A D | buffer.h | 29 } buffer; typedef 34 buffer* buffer_init(void); 40 void buffer_move(buffer * restrict b, buffer * restrict src); 100 void buffer_free_ptr(buffer *b); 163 int buffer_is_equal(const buffer *a, const buffer *b); 201 void buffer_to_lower(buffer *b); 203 void buffer_to_upper(buffer *b); 296 static inline void buffer_copy_buffer(buffer * restrict b, const buffer * restrict src); 297 static inline void buffer_copy_buffer(buffer * restrict b, const buffer * restrict src) { in buffer_copy_buffer() 302 static inline void buffer_append_buffer(buffer * restrict b, const buffer * restrict src); [all …]
|
| H A D | request.h | 26 const buffer *server_name; 27 const buffer *server_tag; 84 buffer authority; 87 buffer path; 92 buffer path; 96 buffer rel_path; 101 buffer b; 163 buffer target; 164 buffer target_orig; 166 buffer pathinfo; [all …]
|
| H A D | stat_cache.h | 15 buffer name; 22 buffer etag; 23 buffer content_type; 28 int stat_cache_choose_engine (const buffer *stat_cache_string, log_error_st *errh); 47 const buffer * stat_cache_mimetype_by_xattr(const char *name); 54 const buffer * stat_cache_etag_get(stat_cache_entry *sce, int flags); 59 stat_cache_entry * stat_cache_get_entry(const buffer *name); 60 stat_cache_entry * stat_cache_get_entry_open(const buffer *name, int symlinks); 61 const stat_cache_st * stat_cache_path_stat(const buffer *name); 62 int stat_cache_path_isdir(const buffer *name); [all …]
|
| H A D | array.h | 17 buffer key; \ 36 buffer value; 113 buffer * array_get_buf_ptr_ext(array *a, int ext, const char *k, uint32_t klen); 116 buffer * array_get_buf_ptr(array *a, const char *k, uint32_t klen); 136 data_unset * array_match_key_prefix (const array * const a, const buffer * const b); 142 const buffer * array_match_value_prefix (const array * const a, const buffer * const b); 145 const buffer * array_match_value_prefix_nc (const array * const a, const buffer * const b); 148 data_unset * array_match_key_suffix (const array * const a, const buffer * const b); 154 const buffer * array_match_value_suffix (const array * const a, const buffer * const b); 157 const buffer * array_match_value_suffix_nc (const array * const a, const buffer * const b); [all …]
|
| H A D | buffer.c | 14 buffer* buffer_init(void) { in buffer_init() 17 return ck_calloc(1, sizeof(buffer)); in buffer_init() 19 buffer * const b = calloc(1, sizeof(*b)); in buffer_init() 25 void buffer_free(buffer *b) { in buffer_free() 31 void buffer_free_ptr(buffer *b) { in buffer_free_ptr() 38 void buffer_move(buffer * restrict b, buffer * restrict src) { in buffer_move() 39 buffer tmp; in buffer_move() 146 void buffer_commit(buffer *b, size_t size) in buffer_commit() 432 int buffer_is_equal(const buffer *a, const buffer *b) { in buffer_is_equal() 893 void buffer_path_simplify(buffer *b) in buffer_path_simplify() [all …]
|
| H A D | keyvalue.h | 36 …fer_append(log_error_st *errh, pcre_keyvalue_buffer *kvb, const buffer *key, const buffer *value, … 41 …cess(const pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, const buffer *input, buffer *result); 44 void pcre_keyvalue_burl_normalize_key(buffer *k, buffer *t); 47 void pcre_keyvalue_burl_normalize_value(buffer *v, buffer *t);
|
| H A D | mod_simple_vhost.c | 14 const buffer *server_root; 15 const buffer *default_host; 16 const buffer *document_root; 25 buffer last_root; 104 buffer *b; in SETDEFAULTS_FUNC() 105 *(const buffer **)&b = cpv->v.b; in SETDEFAULTS_FUNC() 132 static void build_doc_root_path(buffer *out, const buffer *sroot, const buffer *host, const buffer … in build_doc_root_path() 155 static int build_doc_root(request_st * const r, plugin_data *p, buffer *out, const buffer *host) { in build_doc_root() 184 buffer * const b = r->tmp_buf;/*(tmp_buf cleared before use in call below)*/ in mod_simple_vhost_docroot() 185 const buffer *host = &r->uri.authority; in mod_simple_vhost_docroot()
|
| H A D | base.h | 51 buffer dst_addr_buf; 109 const buffer *syslog_facility; 110 const buffer *bindhost; 111 const buffer *changeroot; 112 const buffer *username; 113 const buffer *groupname; 114 const buffer *network_backend; 118 buffer *pid_file; 134 buffer *srv_token; 152 buffer *tmp_buf; [all …]
|
| H A D | burl.h | 8 const buffer *scheme; 9 const buffer *authority; 11 const buffer *path; 12 const buffer *query; 33 int burl_normalize (buffer *b, buffer *t, int flags); 46 void burl_append (buffer * const b, const char * const str, const size_t len, const int flags);
|
| H A D | mod_evhost.c | 29 const buffer *path_pieces; 44 static void mod_evhost_free_path_pieces(const buffer *path_pieces) { in mod_evhost_free_path_pieces() 45 buffer *b; in mod_evhost_free_path_pieces() 46 *(const buffer **)&b = path_pieces; in mod_evhost_free_path_pieces() 72 static buffer * mod_evhost_parse_pattern_err(buffer *bptr) { in mod_evhost_parse_pattern_err() 77 static buffer * mod_evhost_parse_pattern(const char *ptr) { in mod_evhost_parse_pattern() 81 buffer bptr[128]; /* (128 elements takes 2k on stack in 64-bit) */ in mod_evhost_parse_pattern() 128 buffer * const path_pieces = ck_malloc((used+1) * sizeof(buffer)); in mod_evhost_parse_pattern() 129 return memcpy(path_pieces, bptr, (used+1) * sizeof(buffer)); in mod_evhost_parse_pattern() 215 static void mod_evhost_parse_host(buffer *key, array *host, buffer *authority) { in mod_evhost_parse_host() [all …]
|
| H A D | gw_backend.h | 40 buffer *connection_name; 41 buffer *unixsocket; /* config.socket + "-" + id */ 76 const buffer *host; 79 const buffer *id; 140 const buffer *unixsocket; 149 const buffer *bin_path; 169 const buffer *docroot; 209 const buffer *strip_request_uri; 243 const buffer key; /* like .php */ 313 buffer *response; [all …]
|
| H A D | burl.c | 58 static int burl_normalize_basic_unreserved_fix (buffer *b, buffer *t, int i, int qs) in burl_normalize_basic_unreserved_fix() 98 static int burl_normalize_basic_unreserved (buffer *b, buffer *t) in burl_normalize_basic_unreserved() 130 static int burl_normalize_basic_required_fix (buffer *b, buffer *t, int i, int qs) in burl_normalize_basic_required_fix() 174 static int burl_normalize_basic_required (buffer *b, buffer *t) in burl_normalize_basic_required() 210 static int burl_contains_ctrls (const buffer *b) in burl_contains_ctrls() 222 static void burl_normalize_qs20_to_plus_fix (buffer *b, int i) in burl_normalize_qs20_to_plus_fix() 238 static void burl_normalize_qs20_to_plus (buffer *b, int qs) in burl_normalize_qs20_to_plus() 251 static int burl_normalize_2F_to_slash_fix (buffer *b, int qs, int i) in burl_normalize_2F_to_slash_fix() 291 static int burl_normalize_path (buffer *b, buffer *t, int qs, int flags) in burl_normalize_path() 331 static int burl_scan_qmark (const buffer * const b) { in burl_scan_qmark() [all …]
|
| H A D | keyvalue.c | 41 buffer value; 48 …fer_append(log_error_st *errh, pcre_keyvalue_buffer *kvb, const buffer *key, const buffer *value, … in pcre_keyvalue_buffer_append() 58 memcpy(&kv->value, value, sizeof(buffer)); in pcre_keyvalue_buffer_append() 295 const buffer * const target = burl->path; in pcre_keyvalue_buffer_subst_ext() 314 const buffer *qs = ctx->burl->query; in pcre_keyvalue_buffer_subst_ext() 359 static void pcre_keyvalue_buffer_subst(buffer *b, const buffer *patternb, const pcre_keyvalue_ctx *… in pcre_keyvalue_buffer_subst() 397 …ess(const pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, const buffer *input, buffer *result) { in pcre_keyvalue_buffer_process() 487 static void pcre_keyvalue_burl_percent_high_UTF8 (buffer *b, buffer *t) in pcre_keyvalue_burl_percent_high_UTF8() 511 static void pcre_keyvalue_burl_percent_percent_high_UTF8 (buffer *b, buffer *t) in pcre_keyvalue_burl_percent_percent_high_UTF8() 554 void pcre_keyvalue_burl_normalize_key (buffer *k, buffer *t) in pcre_keyvalue_burl_normalize_key() [all …]
|
| H A D | chunk.h | 24 buffer *mem; /* either the storage of the mem-chunk or the name of the file */ 60 buffer * chunk_buffer_acquire(void); 62 void chunk_buffer_release(buffer *b); 65 void chunk_buffer_yield(buffer *b); 67 size_t chunk_buffer_prepare_append (buffer *b, size_t sz); 92 void chunkqueue_append_buffer(chunkqueue * restrict cq, buffer * restrict mem); /* may reset "mem" … 98 buffer * chunkqueue_prepend_buffer_open_sz(chunkqueue *cq, size_t sz); 101 buffer * chunkqueue_prepend_buffer_open(chunkqueue *cq); 106 buffer * chunkqueue_append_buffer_open_sz(chunkqueue *cq, size_t sz); 109 buffer * chunkqueue_append_buffer_open(chunkqueue *cq); [all …]
|
| H A D | http_header.c | 166 int http_header_remove_token (buffer * const b, const char * const m, const uint32_t mlen) in http_header_remove_token() 196 static inline void http_header_token_append(buffer * const vb, const char * const v, const uint32_t… in http_header_token_append() 233 buffer * const vb = array_get_buf_ptr_ext(&r->resp_headers, id, k, klen); in http_header_response_set_ptr() 262 buffer * const vb = array_get_buf_ptr_ext(&r->resp_headers, id, k, klen); in http_header_response_append() 283 buffer * const vb = array_get_buf_ptr_ext(&r->resp_headers, id, k, klen); in http_header_response_insert() 300 buffer * const vb = array_get_buf_ptr_ext(&r->rqst_headers, id, k, klen); in http_header_request_set_ptr() 329 buffer * const vb = array_get_buf_ptr_ext(&r->rqst_headers, id, k, klen); in http_header_request_append() 337 buffer * http_header_env_get(const request_st * const r, const char *k, uint32_t klen) { in http_header_env_get() 344 buffer * http_header_env_set_ptr(request_st *r, const char *k, uint32_t klen) { in http_header_env_set_ptr() 345 buffer * const vb = array_get_buf_ptr(&r->env, k, klen); in http_header_env_set_ptr() [all …]
|
| H A D | response.h | 34 handler_t(*parse)(request_st *, struct http_response_opts_t *, buffer *, size_t); 43 handler_t http_response_parse_headers(request_st *r, http_response_opts *opts, buffer *hdrs); 44 handler_t http_response_read(request_st *r, http_response_opts *opts, buffer *b, fdnode *fdn); 49 int http_response_buffer_append_authority(request_st *r, buffer *o); 51 const buffer * http_response_set_last_modified(request_st *r, unix_time64_t lmtime); 52 int http_response_handle_cachable(request_st *r, const buffer *lmod, unix_time64_t lmtime); 55 void http_response_send_file (request_st *r, const buffer *path, struct stat_cache_entry *sce);
|
| H A D | configfile.h | 41 buffer string; 52 buffer comp_tag; 74 buffer *basedir; 84 void configparser(void *yyp, int yymajor, buffer *yyminor, config_t *ctx); 93 int config_remoteip_normalize(buffer *b, buffer *tb);
|
| H A D | http_kv.h | 81 const buffer *http_method_buf (http_method_t i); 88 void http_status_append(buffer *b, int status); 91 void http_version_append(buffer *b, http_version_t version); 98 static inline void http_method_append (buffer * const b, const http_method_t method); 99 static inline void http_method_append (buffer * const b, const http_method_t method) { in http_method_append() 100 const buffer * const kv = http_method_buf(method); in http_method_append()
|
| H A D | array.c | 266 const buffer * const b = &a->sorted[probe]->key; in array_get_index() 517 const buffer * const key = &a->data[i]->key; in array_match_key_prefix_klen() 529 const buffer * const key = &a->data[i]->key; in array_match_key_prefix_nc_klen() 538 array_match_key_prefix (const array * const a, const buffer * const b) in array_match_key_prefix() 552 const buffer * 566 const buffer * 587 const buffer * const key = &a->data[i]->key; in array_match_key_suffix() 602 const buffer * const key = &a->data[i]->key; in array_match_key_suffix_nc() 610 const buffer * 625 const buffer * [all …]
|
| H A D | mod_dirlisting.c | 73 buffer *path; 88 const buffer *show_readme; 89 const buffer *show_header; 90 const buffer *external_css; 91 const buffer *external_js; 92 const buffer *encoding; 93 const buffer *set_footer; 127 buffer *jb; 180 buffer *path = NULL; in mod_dirlisting_parse_cache() 577 const buffer *path; in http_list_directory_include_file() [all …]
|
| H A D | http_header.h | 113 int http_header_remove_token (buffer * const b, const char * const m, const uint32_t mlen); 116 buffer * http_header_response_get(const request_st *r, enum http_header_e id, const char *k, uint32… 118 buffer * http_header_response_set_ptr(request_st *r, enum http_header_e id, const char *k, uint32_t… 125 buffer * http_header_request_get(const request_st *r, enum http_header_e id, const char *k, uint32_… 127 buffer * http_header_request_set_ptr(request_st *r, enum http_header_e id, const char *k, uint32_t … 133 buffer * http_header_env_get(const request_st *r, const char *k, uint32_t klen); 135 buffer * http_header_env_set_ptr(request_st *r, const char *k, uint32_t klen);
|
| H A D | mod_webdav.c | 397 buffer *tmpb; 690 buffer locktoken; 691 buffer lockroot; 692 buffer ownerinfo; 701 buffer locktoken; 702 buffer lockroot; 703 buffer ownerinfo; 852 webdav_xml_href (buffer * const b, const buffer * const href) in webdav_xml_href() 3931 buffer *tokens; 3934 buffer *b; [all …]
|
| /lighttpd1.4/src/t/ |
| H A D | test_keyvalue.c | 21 static const buffer kvstr[] = { in test_keyvalue_test_kvb_init() 44 buffer *url = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() 45 buffer *result = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() 50 buffer *scheme = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() 51 buffer *authority = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() 52 buffer *path = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() 53 buffer *query = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process()
|
| H A D | test_mod_evhost.c | 15 …d_evhost_build_doc_root_path_loop(struct ttt *tt, size_t nelts, buffer *authority, buffer *b, arra… in test_mod_evhost_build_doc_root_path_loop() 18 const buffer *path_pieces = mod_evhost_parse_pattern(t->pattern); in test_mod_evhost_build_doc_root_path_loop() 27 buffer *authority = buffer_init(); in test_mod_evhost_build_doc_root_path() 28 buffer *b = buffer_init(); in test_mod_evhost_build_doc_root_path()
|
| H A D | test_buffer.c | 10 static void run_buffer_path_simplify(buffer *psrc, buffer *pdest, const char *in, size_t in_len, co… in run_buffer_path_simplify() 43 static void test_buffer_path_simplify_with(buffer *psrc, buffer *pdest) { in test_buffer_path_simplify_with() 72 buffer *psrc = buffer_init(); in test_buffer_path_simplify() 81 buffer *psrc = buffer_init(); in test_buffer_to_lower_upper() 97 buffer *b = buffer_init(); in test_buffer_string_space() 115 buffer *b = buffer_init(); in test_buffer_append_path_len() 148 buffer *b = buffer_init(); in test_buffer_append_bs_escaped()
|