Lines Matching defs:buflen

495 static int cpystrn(char *buf, const char *arg, int buflen)
500 end = apr_cpystrn(buf, arg, buflen);
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, buflen, "%" APR_PID_T_FMT, pid);
536 char *buf, int buflen)
546 return apr_snprintf(buf, buflen, "%"APR_PID_T_FMT, tid);
554 return apr_snprintf(buf, buflen, "%pT", &tid);
561 char *buf, int buflen)
563 int time_len = buflen;
583 char *buf, int buflen)
588 return cpystrn(buf, priorities[info->level].t_name, buflen);
592 char *buf, int buflen)
601 return cpystrn(buf, info->c->log_id, buflen);
605 return cpystrn(buf, info->rmain->log_id, buflen);
611 char *buf, int buflen)
616 return apr_snprintf(buf, buflen, "%d", info->c->keepalives);
620 char *buf, int buflen)
622 return cpystrn(buf, ap_find_module_short_name(info->module_index), buflen);
626 char *buf, int buflen)
664 return apr_snprintf(buf, buflen, "%s(%d)", file, info->line);
669 char *buf, int buflen)
677 len = apr_snprintf(buf, buflen, "(%d)", status);
680 len = apr_snprintf(buf, buflen, "(EAI %d)",
684 len = apr_snprintf(buf, buflen, "(OS %d)",
688 len = apr_snprintf(buf, buflen, "(os 0x%08x)",
691 apr_strerror(status, buf + len, buflen - len);
697 char *buf, int buflen)
700 return cpystrn(buf, ap_get_server_name((request_rec *)info->r), buflen);
706 char *buf, int buflen)
709 return cpystrn(buf, info->s->server_hostname, buflen);
716 char *buf, int buflen)
724 return cpystrn(buf, scratch, buflen);
729 return cpystrn(buf, apr_table_get(table, name), buflen);
734 char *buf, int buflen)
737 return log_table_entry(info->r->headers_in, arg, buf, buflen);
743 char *buf, int buflen)
747 return log_table_entry(info->r->notes, arg, buf, buflen);
753 char *buf, int buflen)
756 return log_table_entry(info->r->subprocess_env, arg, buf, buflen);
854 int buflen, int *errstr_start, int *errstr_end,
866 len += log_ctime(info, "u", buf + len, buflen - len);
873 len += log_module_name(info, NULL, buf + len, buflen - len);
875 len += log_loglevel(info, NULL, buf + len, buflen - len);
876 len += cpystrn(buf + len, "] [pid ", buflen - len);
878 len += log_pid(info, NULL, buf + len, buflen - len);
881 len += cpystrn(buf + len, ":tid ", buflen - len);
882 item_len = log_tid(info, NULL, buf + len, buflen - len);
893 item_len = log_file_line(info, NULL, buf + len, buflen - len);
896 len += cpystrn(buf + len, ": ", buflen - len);
901 item_len = log_apr_status(info, NULL, buf + len, buflen - len);
904 len += cpystrn(buf + len, ": ", buflen - len);
913 len += apr_snprintf(buf + len, buflen - len,
919 len += apr_snprintf(buf + len, buflen - len,
930 buflen - len);
934 len += apr_vsnprintf(buf + len, buflen - len, errstr_fmt, args);
939 len += cpystrn(buf + len, ", referer: ", buflen - len);
940 item_len = log_header(info, "Referer", buf + len, buflen - len);
950 char *buf, int buflen, int *errstr_start,
980 buflen - len);
984 len += apr_vsnprintf(buf + len, buflen - len, err_fmt, args);
997 buflen - len);