/httpd/server/ |
H A D | util_ebcdic.c | 73 void ap_xlate_proto_to_ascii(char *buffer, apr_size_t len) argument 78 apr_xlate_conv_buffer(ap_hdrs_to_ascii, buffer, &inbytes_left, 79 buffer, &outbytes_left); 82 void ap_xlate_proto_from_ascii(char *buffer, apr_size_t len) argument 87 apr_xlate_conv_buffer(ap_hdrs_from_ascii, buffer, &inbytes_left, 88 buffer, &outbytes_left);
|
H A D | util_cookies.c | 44 const char *buffer; local 50 buffer = ""; 52 buffer = apr_pstrcat(r->pool, "Max-Age=", apr_ltoa(r->pool, maxage), ";", NULL); 56 rfc2109 = apr_pstrcat(r->pool, name, "=", val, ";", buffer, 86 const char *buffer; local 92 buffer = ""; 94 buffer = apr_pstrcat(r->pool, "Max-Age=", apr_ltoa(r->pool, maxage), ";", NULL); 98 rfc2965 = apr_pstrcat(r->pool, name2, "=", val, ";", buffer,
|
H A D | util_script.c | 416 AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer, argument 430 if (buffer) { 431 *buffer = '\0'; 433 w = buffer ? buffer : x; 560 if (!buffer) { 644 AP_DECLARE(int) ap_scan_script_header_err_core(request_rec *r, char *buffer, argument 648 return ap_scan_script_header_err_core_ex(r, buffer, getsfunc, 659 char *buffer) 661 return ap_scan_script_header_err_core_ex(r, buffer, getsfunc_FIL 658 ap_scan_script_header_err(request_rec *r, apr_file_t *f, char *buffer) argument 665 ap_scan_script_header_err_ex(request_rec *r, apr_file_t *f, char *buffer, int module_index) argument 719 ap_scan_script_header_err_brigade(request_rec *r, apr_bucket_brigade *bb, char *buffer) argument 727 ap_scan_script_header_err_brigade_ex(request_rec *r, apr_bucket_brigade *bb, char *buffer, int module_index) argument 777 ap_scan_script_header_err_strs_ex(request_rec *r, char *buffer, int module_index, const char **termch, int *termarg, ...) argument 799 ap_scan_script_header_err_strs(request_rec *r, char *buffer, const char **termch, int *termarg, ...) argument [all...] |
/httpd/modules/filters/ |
H A D | mod_data.c | 134 /* buffer big enough for 8000 encoded bytes (6000 raw bytes) and terminator */ 135 char buffer[APR_BUCKET_BUFF_SIZE + 1]; local 196 /* fill up and write out our overflow buffer if partially used */ 212 len = apr_base64_encode_binary(buffer, 214 apr_brigade_write(ctx->bb, NULL, NULL, buffer, len - 1); 217 /* save away any tail in the overflow buffer */
|
H A D | mod_buffer.c | 40 apr_off_t size; /* size of the buffer */ 67 * so we don't know when to flush the buffer to the network 85 /* Empty buffer means we can potentially optimise below */ 134 /* is our buffer full? 135 * If so, send what we have down the filter chain. If the buffer 150 /* at this point we are ready to buffer. 195 /* buffer on main requests only */ 214 /* if our buffer is empty, read off the network until the buffer is full */ 252 /* flush buckets clear the buffer */ 340 AP_DECLARE_MODULE(buffer) = { variable [all...] |
H A D | sed1.c | 94 static void grow_buffer(apr_pool_t *pool, char **buffer, argument 111 if (*spend && *buffer && (*cursize > 0)) { 112 spendsize = *spend - *buffer; 114 if ((*cursize > 0) && *buffer) { 115 memcpy(newbuffer, *buffer, *cursize); 117 *buffer = newbuffer; 119 if (spend != buffer) { 120 *spend = *buffer + spendsize; 441 * buffer is not a newline.
|
H A D | mod_charset_lite.c | 44 #define OUTPUT_XLATE_BUF_SIZE (16*1024) /* size of translation buffer used on output */ 45 #define INPUT_XLATE_BUF_SIZE (8*1024) /* size of translation buffer used on input */ 48 * space left in the translation buffer 95 char *tmp; /* buffer for input filtering */ 431 /* input buffer: */ 434 /* output buffer: */ 498 * remaining of the destination buffer, including terminating NULL */ 627 * . we run out of space in the output buffer 632 * buffer: storage to hold the translated characters 633 * buffer_avail: size of buffer 645 xlate_brigade(charset_filter_ctx_t *ctx, apr_bucket_brigade *bb, char *buffer, apr_size_t *buffer_avail, int *hit_eos) argument [all...] |
H A D | mod_deflate.c | 397 unsigned char *buffer; member in struct:deflate_ctx_t 432 ctx->crc = crc32(ctx->crc, (const Bytef *)ctx->buffer, len); 435 b = apr_bucket_heap_create((char *)ctx->buffer, len, NULL, 439 ctx->stream.next_out = ctx->buffer; 781 ctx->buffer = apr_palloc(r->pool, c->bufferSize); 849 /* initialize deflate output buffer */ 850 ctx->stream.next_out = ctx->buffer; 945 "Zlib error %d flushing zlib output buffer (%s)", 1164 ctx->buffer = apr_palloc(r->pool, c->bufferSize); 1241 /* initialize deflate output buffer */ [all...] |
/httpd/support/ |
H A D | fcgistarter.c | 46 char buffer[1024]; local 51 apr_strerror(rv, buffer, sizeof(buffer)));
|
/httpd/modules/metadata/ |
H A D | mod_ident.c | 165 char buffer[RFC1413_MAXDATA + 1]; local 173 buflen = apr_snprintf(buffer, sizeof(buffer), "%hu,%hu\r\n", sav_rmt_port, 175 ap_xlate_proto_to_ascii(buffer, buflen); 180 apr_size_t j = strlen(buffer + i); 182 status = apr_socket_send(sock, buffer+i, &j); 196 * way out of the buffer. 200 memset(buffer, '\0', sizeof(buffer)); 205 while((cp = strchr(buffer, '\01 [all...] |
/httpd/modules/proxy/ |
H A D | mod_proxy_connect.c | 211 char buffer[HUGE_STRING_LEN]; local 379 nbytes = apr_snprintf(buffer, sizeof(buffer), 381 ap_xlate_proto_to_ascii(buffer, nbytes); 382 ap_fwrite(c->output_filters, bb, buffer, nbytes); 383 nbytes = apr_snprintf(buffer, sizeof(buffer), 386 ap_xlate_proto_to_ascii(buffer, nbytes); 387 ap_fwrite(c->output_filters, bb, buffer, nbytes);
|
H A D | mod_proxy_fcgi.c | 183 char *buffer, 186 apr_status_t rv = apr_socket_recv(conn->sock, buffer, buflen); 196 char *buffer, 205 rv = get_data(conn, buffer + cumulative_len, &readlen); 182 get_data(proxy_conn_rec *conn, char *buffer, apr_size_t *buflen) argument 195 get_data_full(proxy_conn_rec *conn, char *buffer, apr_size_t buflen) argument
|
H A D | mod_proxy_ftp.c | 263 * if the last character in the 'response' buffer is an ASCII_LF. 379 * remembers the response message in the supplied buffer 430 char buffer[MAX_STRING_LEN]; member in struct:__anon294 461 ctx->buffer[0] = 0; 606 /* if the buffer overruns - throw data away */ 628 max = sizeof(ctx->buffer) - strlen(ctx->buffer) - 1; 634 apr_cpystrn(ctx->buffer+strlen(ctx->buffer), response, len+1); 651 apr_size_t n = strlen(ctx->buffer); [all...] |
H A D | mod_proxy_http.c | 865 /* Ensure we don't hit a wall where we have a buffer too small 1138 * ProxyBadHeader StartBody). This depends on buffer actually being 1140 * any sense at all, since we depend on buffer still containing 1144 char *buffer, int size, 1168 while ((len = ap_getline(buffer, size, rr, 1)) > 0) { 1169 ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "%s", buffer); 1171 if (!(value = strchr(buffer, ':'))) { /* Find the colon separator */ 1184 if (!apr_date_checkmask(buffer, "HTTP/#.# ###*")) { 1234 process_proxy_header(r, dconf, buffer, value); 1303 char buffer[HUGE_STRING_LE local 1143 ap_proxy_read_headers(request_rec *r, request_rec *rr, char *buffer, int size, conn_rec *c, int *pread_len) argument [all...] |
/httpd/modules/arch/win32/ |
H A D | mod_win32.c | 152 char *buffer; local 193 rv = ap_regkey_value_get(&buffer, key, "", p); 201 rv = ap_regkey_value_get(&buffer, key, "", p); 209 rv = ap_regkey_value_get(&buffer, key, "", p); 217 rv = ap_regkey_value_get(&buffer, key, "", p); 228 if (rv != APR_SUCCESS || !buffer[0]) { 232 return buffer; 433 char buffer[1024]; local 434 apr_size_t bytes = sizeof(buffer); 446 if ((rv = apr_file_read(fh, buffer, [all...] |
/httpd/modules/session/ |
H A D | mod_session.c | 249 * @param value The buffer to write the value to. 308 static int identity_concat(char *buffer, const char *key, const char *val) argument 310 char *slider = buffer; 341 char *buffer = NULL; local 349 buffer = apr_pcalloc(r->pool, length + 1); 351 identity_concat, buffer, z->entries, NULL); 352 z->encoded = buffer;
|
H A D | mod_session_crypto.c | 573 char buffer[MAX_STRING_LEN]; local 586 while (!(ap_cfg_getline(buffer, sizeof(buffer), file))) { 587 args = buffer;
|
/httpd/modules/aaa/ |
H A D | mod_auth_form.c | 612 char *buffer; local 629 buffer = apr_palloc(r->pool, size + 1); 630 apr_brigade_flatten(pair->value, buffer, &size); 631 buffer[len] = 0; 632 *sent_user = buffer; 637 buffer = apr_palloc(r->pool, size + 1); 638 apr_brigade_flatten(pair->value, buffer, &size); 639 buffer[len] = 0; 640 *sent_pw = buffer; 645 buffer [all...] |
/httpd/modules/cache/ |
H A D | mod_cache_socache.c | 72 unsigned char *buffer; /* the cache buffer */ member in struct:cache_socache_object_t 73 apr_size_t buffer_len; /* size of the buffer */ 134 unsigned char *buffer, apr_size_t buffer_len, apr_size_t *slider) 139 if (buffer[*slider] == '\r') { 145 (const char *) buffer + val, *slider - val); 147 if (buffer[*slider] == '\n') { 152 else if (buffer[*slider] == '\0') { 164 static apr_status_t store_array(apr_array_header_t *arr, unsigned char *buffer, argument 177 len = apr_snprintf(buffer 133 read_array(request_rec *r, apr_array_header_t *arr, unsigned char *buffer, apr_size_t buffer_len, apr_size_t *slider) argument 189 read_table(cache_handle_t *handle, request_rec *r, apr_table_t *table, unsigned char *buffer, apr_size_t buffer_len, apr_size_t *slider) argument 242 store_table(apr_table_t *table, unsigned char *buffer, apr_size_t buffer_len, apr_size_t *slider) argument [all...] |
/httpd/modules/core/ |
H A D | mod_macro.c | 360 return "cannot substitute, buffer size too small"; 616 char *buffer = (char *) buf; local 624 buffer[i++] = next; 640 buffer[i] = '\0';
|
/httpd/modules/generators/ |
H A D | mod_cgi.c | 661 h->alloc_len = APR_BUCKET_BUFF_SIZE; /* note the real buffer size */ 1088 char *buffer; local 1091 buffer = apr_pstrcat(ctx->pool, "<a href=\"", location, "\">", 1094 APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_pool_create(buffer, 1095 strlen(buffer), ctx->pool,
|
H A D | mod_cgid.c | 1755 char *buffer; local 1758 buffer = apr_pstrcat(ctx->pool, "<a href=\"", location, "\">", 1761 APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_pool_create(buffer, 1762 strlen(buffer), ctx->pool,
|
/httpd/modules/http/ |
H A D | http_filters.c | 91 static apr_status_t parse_chunk_size(http_ctx_t *ctx, const char *buffer, argument 97 char c = buffer[i]; 425 const char *buffer; local 429 rv = apr_bucket_read(e, &buffer, &len, APR_BLOCK_READ); 432 rv = parse_chunk_size(ctx, buffer, len, 1073 /* discard_rest_of_request_body into our buffer */ 1490 * In order to use the last two options, the caller MUST provide a buffer 1497 * 3. Finally, call ap_get_client_block in a loop. Pass it a buffer and its size. 1498 * It will put data into the buffer (not necessarily a full buffer), an 1581 ap_get_client_block(request_rec *r, char *buffer, apr_size_t bufsiz) argument [all...] |
/httpd/modules/ssl/ |
H A D | ssl_engine_io.c | 93 * malloc-ed buffer, rather than copying into a mem BIO. 117 apr_bucket_brigade *bb; /* Brigade used as a buffer. */ 316 char buffer[AP_IOBUFSIZE]; member in struct:__anon319 329 * char_buffer object is used to cache a segment of inctx->buffer, and 331 * beginning of inctx->buffer. So the segments to copy cannot be 333 static int char_buffer_read(char_buffer_t *buffer, char *in, int inl) argument 335 if (!buffer->length) { 339 if (buffer->length > inl) { 340 /* we have have enough to fill the caller's buffer */ 341 memmove(in, buffer 356 char_buffer_write(char_buffer_t *buffer, char *in, int inl) argument 1567 char buffer[COALESCE_BYTES]; member in struct:coalesce_ctx [all...] |
/httpd/modules/mappers/ |
H A D | mod_negotiation.c | 744 static enum header_state get_header_line(char *buffer, int len, apr_file_t *map) argument 746 char *buf_end = buffer + len; 753 if (apr_file_gets(buffer, MAX_STRING_LEN, map) != APR_SUCCESS) { 756 } while (buffer[0] == '#'); 760 for (cp = buffer; apr_isspace(*cp); ++cp) { 777 if (!strncasecmp(buffer, "Body:", 5)) 827 static apr_off_t get_body(char *buffer, apr_size_t *len, const char *tag, argument 843 if (apr_file_read(map, buffer, len) != APR_SUCCESS) { 851 memcpy(buffer + *len, tag, taglen); 852 endbody = strstr(buffer, ta 945 char buffer[MAX_STRING_LEN]; local [all...] |