| /lighttpd1.4/src/ |
| H A D | buffer.h | 239 #define light_bshift(b) ((uint64_t)1uL << (b)) argument 240 #define light_btst(a,b) ((a) & ((uint64_t)1uL << (b))) argument 241 #define light_bclr(a,b) ((a) &= ~((uint64_t)1uL << (b))) argument 268 static inline int buffer_is_unset(const buffer *b) { in buffer_is_unset() 275 static inline int buffer_is_blank(const buffer *b) { in buffer_is_blank() 283 static inline uint32_t buffer_clen (const buffer *b) { in buffer_clen() 316 static inline void buffer_blank(buffer *b) { in buffer_blank() 329 static inline void buffer_append_slash(buffer *b) { in buffer_append_slash() 335 static inline void buffer_clear(buffer *b) { in buffer_clear() 339 static inline void buffer_reset(buffer *b) { in buffer_reset() [all …]
|
| H A D | buffer.c | 19 buffer * const b = calloc(1, sizeof(*b)); in buffer_init() local 25 void buffer_free(buffer *b) { in buffer_free() 31 void buffer_free_ptr(buffer *b) { in buffer_free_ptr() 126 buffer_extend (buffer * const b, const size_t x) in buffer_extend() 146 void buffer_commit(buffer *b, size_t size) in buffer_commit() 320 void buffer_append_int(buffer *b, intmax_t val) { in buffer_append_int() 822 void buffer_urldecode_path(buffer * const b) { in buffer_urldecode_path() 843 int buffer_is_valid_UTF8(const buffer *b) { in buffer_is_valid_UTF8() 893 void buffer_path_simplify(buffer *b) in buffer_path_simplify() 986 void buffer_to_lower(buffer * const b) { in buffer_to_lower() [all …]
|
| H A D | burl.c | 49 #define li_utf8_invalid_byte(b) ((b) >= 0xF5 || ((b)|0x1) == 0xC1) argument 98 static int burl_normalize_basic_unreserved (buffer *b, buffer *t) in burl_normalize_basic_unreserved() 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() 275 static int burl_normalize_2F_to_slash (buffer *b, int qs, int flags) in burl_normalize_2F_to_slash() 331 static int burl_scan_qmark (const buffer * const b) { in burl_scan_qmark() 337 int burl_normalize (buffer *b, buffer *t, int flags) in burl_normalize() [all …]
|
| H A D | mod_status.c | 137 static void mod_status_header_append_sort(buffer *b, plugin_data *p, const char* k, size_t klen) in mod_status_header_append_sort() 150 static void mod_status_get_multiplier(buffer *b, double avg, int size) { in mod_status_get_multiplier() 173 static void mod_status_html_rtable_r (buffer * const b, const request_st * const r, const unix_time… in mod_status_html_rtable_r() 238 buffer * const b = rq->tmp_buf; in mod_status_html_rtable() local 264 buffer * const b = chunkqueue_append_buffer_open(&r->write_queue); in mod_status_handle_server_status_html() local 548 buffer *b = chunkqueue_append_buffer_open(&r->write_queue); in mod_status_handle_server_status_text() local 584 buffer *b = chunkqueue_append_buffer_open(&r->write_queue); in mod_status_handle_server_status_json() local 663 buffer * const b = chunkqueue_append_buffer_open(&r->write_queue); in mod_status_handle_server_statistics() local 697 static void mod_status_row_append(buffer *b, const char *k, size_t klen, const char *v, size_t vlen) in mod_status_row_append() 712 static void mod_status_header_append(buffer *b, const char *k, size_t klen) in mod_status_header_append() [all …]
|
| H A D | keyvalue.c | 185 static void pcre_keyvalue_buffer_append_match(buffer *b, const pcre_keyvalue_ctx *ctx, unsigned int… in pcre_keyvalue_buffer_append_match() 198 static void pcre_keyvalue_buffer_append_ctxmatch(buffer *b, const pcre_keyvalue_ctx *ctx, unsigned … in pcre_keyvalue_buffer_append_ctxmatch() 215 static int pcre_keyvalue_buffer_subst_ext(buffer *b, const char *pattern, const pcre_keyvalue_ctx *… 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() 456 static void pcre_keyvalue_burl_percent_toupper (buffer *b) in pcre_keyvalue_burl_percent_toupper() 470 static void pcre_keyvalue_burl_percent_percent_toupper (buffer *b) in pcre_keyvalue_burl_percent_percent_toupper() 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()
|
| H A D | array.c | 211 static int array_keycmpb(const char * const k, const uint32_t klen, const buffer * const b) { in array_keycmpb() 266 const buffer * const b = &a->sorted[probe]->key; in array_get_index() local 538 array_match_key_prefix (const array * const a, const buffer * const b) in array_match_key_prefix() 547 array_match_key_prefix_nc (const array * const a, const buffer * const b) in array_match_key_prefix_nc() 553 array_match_value_prefix (const array * const a, const buffer * const b) in array_match_value_prefix() 567 array_match_value_prefix_nc (const array * const a, const buffer * const b) in array_match_value_prefix_nc() 581 array_match_key_suffix (const array * const a, const buffer * const b) in array_match_key_suffix() 596 array_match_key_suffix_nc (const array * const a, const buffer * const b) in array_match_key_suffix_nc() 611 array_match_value_suffix (const array * const a, const buffer * const b) in array_match_value_suffix() 626 array_match_value_suffix_nc (const array * const a, const buffer * const b) in array_match_value_suffix_nc() [all …]
|
| H A D | sock_addr.c | 131 int sock_addr_is_addr_eq_bits(const sock_addr *a, const sock_addr *b, int bits) { in sock_addr_is_addr_eq_bits() 308 int sock_addr_inet_ntop_copy_buffer(buffer * const restrict b, const sock_addr * const restrict sad… in sock_addr_inet_ntop_copy_buffer() 319 int sock_addr_inet_ntop_append_buffer(buffer * const restrict b, const sock_addr * const restrict s… in sock_addr_inet_ntop_append_buffer() 329 int sock_addr_stringify_append_buffer(buffer * const restrict b, const sock_addr * const restrict s… in sock_addr_stringify_append_buffer() 363 int sock_addr_nameinfo_append_buffer(buffer * const restrict b, const sock_addr * const restrict sa… in sock_addr_nameinfo_append_buffer()
|
| H A D | response.c | 70 http_response_write_header_partial_1xx (request_st * const r, buffer * const b) in http_response_write_header_partial_1xx() 125 buffer * const b = chunkqueue_prepend_buffer_open(cq); in http_response_write_header() local 477 buffer *b = &r->physical.rel_path; in http_response_prepare() local 669 buffer * const b = chunkqueue_append_buffer_open(&r->write_queue); in http_response_static_errdoc() local 858 buffer * const b = in http_response_write_prepare() local
|
| H A D | log.c | 164 log_buffer_append_encoded (buffer * const b, in log_buffer_append_encoded() 225 buffer * const restrict b = &log_errh->b; /*(use shared temp buffer)*/ in __attribute_nonnull__() local 252 log_error_append_strerror (buffer * const b, const int errnum) in log_error_append_strerror() 272 buffer * const restrict b = log_buffer_prepare(errh, filename, line); in log_error_va_list_impl() local 323 buffer * const restrict b = log_buffer_prepare(errh, filename, line); in log_error_multiline() local
|
| H A D | mod_magnet.c | 445 static void magnet_tmpbuf_release(buffer *b) in magnet_tmpbuf_release() 922 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_b64dec() local 941 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_b64enc() local 974 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_hexdec() local 993 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_hexenc() local 1010 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_quoteddec() local 1039 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_quotedenc() local 1157 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_bsdec() local 1174 buffer * const b = magnet_tmpbuf_acquire(L); in magnet_bsenc() local 1479 const char *b = s; in magnet_cookie_param_push_token() local [all …]
|
| H A D | algo_md5.c | 102 #define FF(a, b, c, d, x, s, ac) { \ argument 107 #define GG(a, b, c, d, x, s, ac) { \ argument 112 #define HH(a, b, c, d, x, s, ac) { \ argument 117 #define II(a, b, c, d, x, s, ac) { \ argument 210 UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in li_MD5Transform() local
|
| H A D | mod_proxy.c | 389 static const buffer * http_header_remap_host_match (buffer *b, size_t off, http_header_remap_opts *… in http_header_remap_host_match() 430 static size_t http_header_remap_host (buffer *b, size_t off, http_header_remap_opts *remap_hdrs, in… in http_header_remap_host() 442 static size_t http_header_remap_urlpath (buffer *b, size_t off, http_header_remap_opts *remap_hdrs,… in http_header_remap_urlpath() 484 static void http_header_remap_uri (buffer *b, size_t off, http_header_remap_opts *remap_hdrs, int i… in http_header_remap_uri() 538 static void http_header_remap_setcookie (buffer *b, size_t off, http_header_remap_opts *remap_hdrs) in http_header_remap_setcookie() 595 static void buffer_append_string_backslash_escaped(buffer *b, const char *s, size_t len) { in buffer_append_string_backslash_escaped() 611 buffer *b = NULL; in proxy_set_Forwarded() local 841 buffer * const b = chunkqueue_prepend_buffer_open_sz(&hctx->gw.wb, rsz); in proxy_create_env() local
|
| H A D | http_kv.c | 204 void http_status_append(buffer * const b, const int status) { in http_status_append() 219 void http_version_append(buffer * const b, const http_version_t version) { in http_version_append()
|
| H A D | sys-mmap.h | 61 # define mmap(a, b, c, d, e, f) (-1) argument 62 # define munmap(a, b) (-1) argument
|
| H A D | mod_evhost.c | 45 buffer *b; in mod_evhost_free_path_pieces() local 276 static void mod_evhost_build_doc_root_path(buffer *b, array *parsed_host, buffer *authority, const … in mod_evhost_build_doc_root_path() 336 buffer * const b = r->tmp_buf;/*(tmp_buf cleared before use in call below)*/ in mod_evhost_uri_handler() local
|
| H A D | mod_webdav.c | 820 webdav_xml_prop (buffer * const b, in webdav_xml_prop() 950 webdav_xml_activelock (buffer * const b, in webdav_xml_activelock() 1079 buffer * const b = in webdav_xml_doc_lock_acquired() local 1123 buffer * const b = in webdav_xml_doc_error_propfind_finite_depth() local 1140 buffer * const b = in webdav_xml_doc_error_lock_token_matches_request_uri() local 2113 buffer * const b) in webdav_prop_select_prop() 3325 buffer * restrict b; member 3411 buffer * const restrict b = pb->b_200; in webdav_propfind_live_props() local 3679 buffer * const restrict b = pb->b; in webdav_propfind_resource_403() local 3934 buffer *b; member [all …]
|
| H A D | mod_accesslog.c | 398 buffer *b; in SETDEFAULTS_FUNC() local 607 const buffer * const restrict b, esc_fn_t esc_fn) in accesslog_append_buffer() 657 accesslog_append_time (buffer * const b, const request_st * const r, in accesslog_append_time() 776 accesslog_append_remote_addr_masked (buffer * const b, const request_st * const r) in accesslog_append_remote_addr_masked() 819 log_access_record_cold (buffer * const b, const request_st * const r, in log_access_record_cold() 890 static int log_access_record (const request_st * const r, buffer * const b, format_fields * const p… in log_access_record() 990 buffer * const b = (p->conf.use_syslog || fdlog->mode == FDLOG_PIPE) in REQUESTDONE_FUNC() local
|
| H A D | mod_authn_ldap.c | 157 char *b, *e = host->ptr; in mod_authn_add_scheme() local 238 buffer *b; in SETDEFAULTS_FUNC() local 259 buffer *b; in SETDEFAULTS_FUNC() local 370 const char * const b = raw->ptr; in mod_authn_append_ldap_dn_escape() local 458 const char * const b = raw->ptr; in mod_authn_append_ldap_filter_escape() local 739 for (const char *b = template->ptr, *d; *b; b = d+1) { in mod_authn_ldap_basic() local
|
| H A D | http-header-glue.c | 485 buffer * const b = r->tmp_buf; in http_response_xsendfile2() local 753 …ppend_splice(request_st * const r, http_response_opts * const opts, buffer * const b, const int fd… in http_response_append_splice() 1074 http_response_check_1xx (request_st * const r, buffer * const restrict b, uint32_t hlen, uint32_t d… in http_response_check_1xx() 1095 …p_response_parse_headers(request_st * const r, http_response_opts * const opts, buffer * const b) { in http_response_parse_headers() 1235 …esponse_read(request_st * const r, http_response_opts * const opts, buffer * const b, fdnode * con… in http_response_read()
|
| H A D | configfile.c | 1109 buffer *b; in config_insert() local 1328 buffer * const b = &dc->string; in config_finalize() local 1390 static void config_print_indent(buffer *b, int depth) { in config_print_indent() 1406 static void config_print_array(const array * const a, buffer * const b, int depth) { in config_print_array() 1449 static void config_print_config(const data_unset *d, buffer * const b, int depth) { in config_print_config() 1513 static void config_print_string(const data_unset *du, buffer * const b) { in config_print_string() 1531 static void config_print_by_type(const data_unset * const du, buffer * const b, int depth) { in config_print_by_type() 2176 buffer * const b = chunk_buffer_acquire(); in config_parse_stdin() local 2371 static int config_remoteip_normalize_ipv6(buffer * const b, buffer * const tb) { in config_remoteip_normalize_ipv6() 2394 int config_remoteip_normalize(buffer * const b, buffer * const tb) { in config_remoteip_normalize()
|
| H A D | http_date.h | 26 #define http_date_time_append(b, t) \ argument
|
| H A D | mod_ajp13.c | 430 ajp13_enc_attribute (uint8_t * const x, uint32_t n, const buffer * const b, uint8_t code) in ajp13_enc_attribute() 547 buffer * const b = in ajp13_create_env() local 662 ajp13_expand_headers (buffer * const b, handler_ctx * const hctx, uint32_t plen) in ajp13_expand_headers() 953 ajp13_recv_parse (request_st * const r, struct http_response_opts_t * const opts, buffer * const b,… in ajp13_recv_parse()
|
| H A D | mod_fastcgi.c | 247 buffer * const b = chunkqueue_prepend_buffer_open_sz(&hctx->wb, rsz); in fcgi_create_env() local 343 static void fastcgi_get_packet_body(buffer * const b, handler_ctx * const hctx, const fastcgi_respo… in fastcgi_get_packet_body() 468 static handler_t fcgi_recv_parse(request_st * const r, struct http_response_opts_t *opts, buffer *b… in fcgi_recv_parse()
|
| /lighttpd1.4/src/t/ |
| H A D | test_buffer.c | 97 buffer *b = buffer_init(); in test_buffer_string_space() local 115 buffer *b = buffer_init(); in test_buffer_append_path_len() local 148 buffer *b = buffer_init(); in test_buffer_append_bs_escaped() local
|
| H A D | test_mod_evhost.c | 15 …st_build_doc_root_path_loop(struct ttt *tt, size_t nelts, buffer *authority, buffer *b, array *a) { in test_mod_evhost_build_doc_root_path_loop() 28 buffer *b = buffer_init(); in test_mod_evhost_build_doc_root_path() local
|