/httpd/server/ |
H A D | apreq_error.c | 24 static char *stuffbuffer(char *buf, apr_size_t bufsize, const char *s) argument 26 apr_cpystrn(buf,s,bufsize); 27 return buf; 98 APREQ_DECLARE(char *) apreq_strerror(apr_status_t statcode, char *buf, argument 102 return apr_strerror(statcode, buf, bufsize); 103 return stuffbuffer(buf, bufsize, apreq_error_string(statcode));
|
H A D | util_md5.c | 53 AP_DECLARE(char *) ap_md5_binary(apr_pool_t *p, const unsigned char *buf, int length) argument 67 apr_md5_update(&my_md5, buf, (unsigned int)length); 153 unsigned char buf[4096]; /* keep this a multiple of 64 */ local 158 nbytes = sizeof(buf); 159 while (apr_file_read(infile, buf, &nbytes) == APR_SUCCESS) { 160 apr_md5_update(&context, buf, nbytes); 161 nbytes = sizeof(buf);
|
H A D | error_bucket.c | 42 const char *buf, apr_pool_t *p) 48 h->data = apr_pstrdup(p, buf); 55 AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, const char *buf, argument 67 return ap_bucket_error_make(b, error, buf, p); 41 ap_bucket_error_make(apr_bucket *b, int error, const char *buf, apr_pool_t *p) argument
|
H A D | log.c | 495 static int cpystrn(char *buf, const char *arg, int buflen) argument 500 end = apr_cpystrn(buf, arg, buflen); 501 return end - buf; 506 char *buf, int buflen) 509 return apr_snprintf(buf, buflen, "%s:%d", info->r->useragent_ip, 512 return apr_snprintf(buf, buflen, "%s:%d", info->c->client_ip, 519 char *buf, int buflen) 522 return apr_snprintf(buf, buflen, "%s:%d", info->c->local_ip, 529 char *buf, int buflen) 532 return apr_snprintf(buf, bufle 505 log_remote_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 518 log_local_address(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 528 log_pid(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 535 log_tid(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 560 log_ctime(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 582 log_loglevel(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 591 log_log_id(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 610 log_keepalives(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 619 log_module_name(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 625 log_file_line(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 668 log_apr_status(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 696 log_server_name(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 705 log_virtual_host(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 715 log_table_entry(const apr_table_t *table, const char *name, char *buf, int buflen) argument 733 log_header(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 742 log_note(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 752 log_env_var(const ap_errorlog_info *info, const char *arg, char *buf, int buflen) argument 853 do_errorlog_default(const ap_errorlog_info *info, char *buf, int buflen, int *errstr_start, int *errstr_end, const char *errstr_fmt, va_list args) argument 949 do_errorlog_format(apr_array_header_t *fmt, ap_errorlog_info *info, char *buf, int buflen, int *errstr_start, int *errstr_end, const char *err_fmt, va_list args) argument 1344 fmt_data(unsigned char *buf, const void *vdata, apr_size_t len, apr_size_t *off) argument 1396 unsigned char buf[LOG_BYTES_BUFFER_SIZE]; local 1578 char *buf, *endptr; local [all...] |
H A D | apreq_module_cgi.c | 149 char buf[MAX_PROMPT_NESTING_LEVELS][MAX_BUFFER_SIZE]; local 156 *buf[0] = plevel = 0; 157 start = buf[0]; 209 curarg[plevel] = *buf[plevel] = 0; 210 start = buf[plevel]; 221 start = buf[plevel] + strlen(buf[plevel]); 225 strcpy(start, buf[plevel + 1]); 226 start += strlen(buf[plevel + 1]); 243 apr_file_printf(req->sout, "%s", buf[ 290 char buf[256]; local 501 char buf[65536]; local 545 char buf[65536]; local 664 char buf[65536]; local [all...] |
/httpd/test/ |
H A D | test-writev.c | 54 char buf[100]; local 88 for( i = 0; i < sizeof( buf ); ++i ) { 89 buf[i] = 'x'; 91 vector[0].iov_base = buf; 92 vector[0].iov_len = sizeof(buf); 93 vector[1].iov_base = buf; 94 vector[1].iov_len = sizeof(buf); 95 vector[2].iov_base = buf; 96 vector[2].iov_len = sizeof(buf);
|
/httpd/modules/proxy/ |
H A D | ajp_link.c | 23 char *buf; local 30 buf = (char *)msg->buf; 35 status = apr_socket_send(sock, buf, &written); 42 buf += written; 49 static apr_status_t ilink_read(apr_socket_t *sock, apr_byte_t *buf, argument 58 status = apr_socket_recv(sock, (char *)(buf + rdlen), &length); 82 status = ilink_read(sock, msg->buf, hlen); 98 status = ilink_read(sock, msg->buf + hlen, blen); 111 blen, (int)msg->buf[hle [all...] |
H A D | ajp_msg.c | 39 * @param buf buffer pointer for dump message 43 apr_size_t count, char **buf) 59 *buf = apr_palloc(pool, bl); 60 if (!*buf) 62 apr_snprintf(*buf, bl, 66 current = *buf + strlen(*buf); 69 rl = bl - (current - *buf); 81 x = msg->buf[i + j]; 91 x = msg->buf[ 42 ajp_msg_dump(apr_pool_t *pool, ajp_msg_t *msg, char *err, apr_size_t count, char **buf) argument 119 char *buf, *next; local 204 apr_byte_t *buf; local [all...] |
/httpd/support/ |
H A D | passwd_common.c | 55 const char *buf = "Error: out of memory\n"; local 56 int written, count = strlen(buf); 58 written = write(STDERR_FILENO, buf, count); 62 buf += written; 122 char buf[MAX_STRING_LEN + 1]; local 130 if (apr_file_read_full(file_stdin, buf, sizeof(buf) - 1, 132 || nread == sizeof(buf) - 1) { 135 buf[nread] = '\0'; 136 if (nread >= 1 && buf[nrea [all...] |
/httpd/modules/filters/ |
H A D | mod_proxy_html.c | 106 char *buf; member in struct:__anon169 184 newbuf = realloc(ctx->buf, ctx->avail); 185 if (newbuf != ctx->buf) { 186 if (ctx->buf) 187 apr_pool_cleanup_kill(ctx->f->r->pool, ctx->buf, 191 ctx->buf = newbuf; 195 static void pappend(saxctxt *ctx, const char *buf, const size_t len) argument 198 memcpy(ctx->buf+ctx->offset, buf, len); 226 while (!ap_regexec(m->from.r, ctx->buf 675 metafix(request_rec *r, const char *buf) argument 887 const char *buf = 0; local [all...] |
H A D | mod_xml2enc.c | 60 char* buf; member in struct:__anon177 113 ctx->buf = apr_palloc(r->pool, (apr_size_t)ctx->bblen); 132 char* p = ap_strchr(ctx->buf, '<'); 141 rv = apr_brigade_partition(ctx->bbsave, (p-ctx->buf), 147 ctx->bytes -= (p-ctx->buf); 148 ctx->buf = p ; 193 ctx->xml2enc = xmlDetectCharEncoding((const xmlChar*)ctx->buf, 204 if (ap_regexec(seek_meta_ctype, ctx->buf, 1, match, 0) == 0 ) { 210 /* now set length of useful buf for start-of-data hooks */ 213 p = apr_pstrndup(r->pool, ctx->buf 407 char* buf; local [all...] |
H A D | mod_sed.c | 101 * Allocate a new bucket from buf and sz and append to ctx->bb 103 static apr_status_t append_bucket(sed_filter_ctxt* ctx, char* buf, int sz) argument 109 b = apr_bucket_pool_create(buf, sz, ctx->r->pool, 115 b = apr_bucket_transient_create(buf, sz, 150 static apr_status_t sed_write_output(void *dummy, char *buf, int sz) argument 164 memcpy(ctx->curoutbuf, buf, remainbytes); 165 buf += remainbytes; 176 char* newbuf = apr_pmemdup(ctx->tpool, buf, sz); 184 memcpy(ctx->curoutbuf, buf, sz); 189 memcpy(ctx->curoutbuf, buf, s 344 const char *buf = NULL; local 439 const char *buf = NULL; local [all...] |
/httpd/include/ |
H A D | util_md5.h | 46 * @param buf Buffer to generate checksum for 50 AP_DECLARE(char *) ap_md5_binary(apr_pool_t *a, const unsigned char *buf, int len);
|
H A D | apreq_error.h | 33 char *buf,
|
/httpd/modules/ssl/ |
H A D | ssl_ct_util.c | 268 char buf[4096]; local 280 len = sizeof buf; 281 rv = apr_file_read(pdesc[i].desc.f, buf, &len); 293 "%s: %.*s", desc_for_log, (int)len, buf); 305 char buf[4096]; local 316 len = sizeof buf; 317 rv = apr_file_read(fds[i], buf, &len); 334 "%s: %.*s", desc_for_log, (int)len, buf); 666 unsigned char buf[8], *ch; local 680 ch = buf; [all...] |
H A D | ssl_engine_log.c | 122 char buf[HUGE_STRING_LEN]; local 126 apr_vsnprintf(buf, sizeof buf, format, ap); 128 msglen = strlen(buf); 173 n = BIO_read(bio, buf + msglen, sizeof buf - msglen - 1); 175 buf[msglen + n] = '\0'; 184 apr_snprintf(buf + msglen, sizeof buf - msglen, 189 ap_log_rerror(file, line, APLOG_MODULE_INDEX, level, rv, r, "%s", buf); [all...] |
H A D | ssl_engine_pphrase.c | 429 static int pipe_get_passwd_cb(char *buf, int length, char *prompt, int verify) 436 buf[0]='\0'; 437 rc = apr_file_gets(buf, length, readtty); 441 memset(buf, 0, length); 444 if ((p = strchr(buf, '\n')) != NULL) { 449 if ((p = strchr(buf, '\r')) != NULL) { 456 int ssl_pphrase_Handle_CB(char *buf, int bufsize, int verify, void *srv) 471 apr_cpystrn(buf, cpp, bufsize); 472 len = strlen(buf); 499 memset(buf, [all...] |
/httpd/modules/cache/ |
H A D | mod_socache_memcache.c | 201 char buf[MC_KEY_LEN]; local 204 if (socache_mc_id2key(ctx, id, idlen, buf, sizeof buf)) { 214 rv = apr_memcache_set(ctx->mc, buf, (char*)ucaData, nData, 220 "with %d bytes of data", buf, nData); 233 char buf[MC_KEY_LEN], *data; local 236 if (socache_mc_id2key(ctx, id, idlen, buf, sizeof buf)) { 243 rv = apr_memcache_getp(ctx->mc, p, buf, &data, &data_len, NULL); 267 char buf[MC_KEY_LE local [all...] |
/httpd/modules/mappers/ |
H A D | mod_vhost_alias.c | 237 static APR_INLINE void vhost_alias_checkspace(request_rec *r, char *buf, argument 241 if (*pdest + size > buf + HUGE_STRING_LEN) { 244 r->filename = apr_pstrcat(r->pool, r->filename, buf, NULL); 247 r->filename = apr_pstrdup(r->pool, buf); 249 *pdest = buf; 261 char buf[HUGE_STRING_LEN]; local 281 dest = buf; 285 vhost_alias_checkspace(r, buf, &dest, 1); 294 vhost_alias_checkspace(r, buf, &dest, 1); 302 vhost_alias_checkspace(r, buf, [all...] |
/httpd/modules/examples/ |
H A D | mod_case_filter.c | 70 char *buf; local 85 buf = apr_bucket_alloc(len, c->bucket_alloc); 87 buf[n] = apr_toupper(data[n]); 89 pbktOut = apr_bucket_heap_create(buf, len, apr_bucket_free,
|
H A D | mod_case_filter_in.c | 92 char *buf; local 112 buf = ap_malloc(len); 114 buf[n] = apr_toupper(data[n]); 116 pbktOut = apr_bucket_heap_create(buf, len, 0, c->bucket_alloc);
|
/httpd/modules/ldap/ |
H A D | util_ldap_cache_mgr.c | 123 char *buf = block ? (char *)apr_rmm_addr_get(cache->rmm_addr, block) : NULL; local 124 if (buf) { 125 strcpy(buf, s); 126 return buf; 587 char *buf, *buf2; local 617 buf = apr_psprintf(p, 639 buf = apr_psprintf(p, 643 buf, 648 buf = apr_psprintf(p, 650 buf); 661 char *buf, *t1, *t2, *t3; local [all...] |
/httpd/os/win32/ |
H A D | ap_regkey.c | 453 char *buf; local 478 buf = apr_palloc(pool, valuelen); 479 rv = apr_conv_ucs2_to_utf8(value, &size, buf, &valuelen); 484 buf[(alloclen - valuelen)] = '\0'; 485 buf[(alloclen - valuelen) + 1] = '\0'; 494 buf = (char *)value; 495 if (size < 2 || buf[size - 1] != '\0' || buf[size - 2] != '\0') { 496 buf = apr_palloc(pool, size + 2); 497 memcpy(buf, valu 542 apr_wchar_t *buf; local 581 char *buf; local [all...] |
/httpd/modules/core/ |
H A D | mod_macro.c | 331 replace name by replacement at the beginning of buf of bufsize. 335 static char *substitute(char *buf, argument 340 int lbuf = strlen(buf), 347 /* buf must starts with name */ 348 ap_assert(!strncmp(buf, name, lname)); 356 buf, name, replacement, do_esc, shift, lbuf, lrepl, lsubs)); 365 memmove(buf + lname + shift, buf + lname, lbuf - lname + 1); 371 buf[j++] = DELIM; 374 buf[ 388 next_substitution(const char *buf, const apr_array_header_t * args, int *whichone) argument 414 substitute_macro_args( char *buf, int bufsize, const ap_macro_t * macro, const apr_array_header_t * replacements, apr_array_header_t * used) argument 613 array_getstr(void *buf, size_t bufsize, void *param) argument [all...] |
/httpd/modules/dav/fs/ |
H A D | repos.c | 295 /* NOTE: buf must be at least DAV_TIMEBUF_SIZE chars in size */ 296 static void dav_format_time(int style, apr_time_t sec, char *buf, apr_size_t buflen) argument 307 apr_snprintf(buf, buflen, "%.4d-%.2d-%.2dT%.2d:%.2d:%.2dZ", 316 apr_snprintf(buf, buflen, "%s, %.2d %s %d %.2d:%.2d:%.2d GMT", 383 status = apr_file_read(inf, pbuf->buf, &len); 410 status = apr_file_write_full(outf, pbuf->buf, len, NULL); 1004 const void *buf, apr_size_t bufsize) 1008 status = apr_file_write_full(stream->f, buf, bufsize, NULL); 1515 fsctx->path1.buf[fsctx->path1.cur_len++] = '/'; 1516 fsctx->path1.buf[fsct 1003 dav_fs_write_stream(dav_stream *stream, const void *buf, apr_size_t bufsize) argument 1920 char buf[DAV_TIMEBUF_SIZE]; local [all...] |