Lines Matching refs:len

672     int len;
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);
692 len += strlen(buf + len);
693 return len;
766 int len;
800 len = apr_base64_encode_len(sizeof(id)); /* includes trailing \0 */
801 encoded = apr_palloc(r ? r->pool : c->pool, len);
805 encoded[len - 2] = '\0';
857 int len = 0;
865 buf[len++] = '[';
866 len += log_ctime(info, "u", buf + len, buflen - len);
867 buf[len++] = ']';
868 buf[len++] = ' ';
872 buf[len++] = '[';
873 len += log_module_name(info, NULL, buf + len, buflen - len);
874 buf[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);
880 field_start = len;
881 len += cpystrn(buf + len, ":tid ", buflen - len);
882 item_len = log_tid(info, NULL, buf + len, buflen - len);
884 len = field_start;
886 len += item_len;
888 buf[len++] = ']';
889 buf[len++] = ' ';
893 item_len = log_file_line(info, NULL, buf + len, buflen - len);
895 len += item_len;
896 len += cpystrn(buf + len, ": ", buflen - len);
901 item_len = log_apr_status(info, NULL, buf + len, buflen - len);
903 len += item_len;
904 len += cpystrn(buf + len, ": ", buflen - len);
913 len += apr_snprintf(buf + len, buflen - len,
919 len += apr_snprintf(buf + len, buflen - len,
926 *errstr_start = len;
929 len += ap_escape_errorlog_item(buf + len, scratch,
930 buflen - len);
934 len += apr_vsnprintf(buf + len, buflen - len, errstr_fmt, args);
936 *errstr_end = len;
938 field_start = len;
939 len += cpystrn(buf + len, ", referer: ", buflen - len);
940 item_len = log_header(info, "Referer", buf + len, buflen - len);
942 len += item_len;
944 len = field_start;
946 return len;
957 int len = 0;
970 field_start = len;
976 *errstr_start = len;
979 len += ap_escape_errorlog_item(buf + len, scratch,
980 buflen - len);
984 len += apr_vsnprintf(buf + len, buflen - len, err_fmt, args);
986 *errstr_end = len;
992 len = field_start;
996 int item_len = (*item->func)(info, item->arg, buf + len,
997 buflen - len);
1005 buf[len++] = '-';
1008 len = field_start;
1013 len += item_len;
1017 return len;
1020 static void write_logline(char *errstr, apr_size_t len, apr_file_t *logf,
1143 int len = 0, errstr_start = 0, errstr_end = 0;
1199 len += do_errorlog_format(log_format, &info, errstr + len,
1200 MAX_STRING_LEN - len,
1204 len += do_errorlog_default(&info, errstr + len, MAX_STRING_LEN - len,
1219 if (len > MAX_STRING_LEN - sizeof(APR_EOL_STR)) {
1220 len = MAX_STRING_LEN - sizeof(APR_EOL_STR);
1222 strcpy(errstr + len, APR_EOL_STR);
1223 len += strlen(APR_EOL_STR);
1227 write_logline(errstr, len, logf, level_and_mask);
1231 errstr, len);
1344 static void fmt_data(unsigned char *buf, const void *vdata, apr_size_t len, apr_size_t *off)
1356 while (*off < len && this_time < BYTES_LOGGED_PER_LINE) {
1393 const char *label, const void *data, apr_size_t len,
1404 if (len > 0xffff) { /* bug in caller? */
1405 len = 0xffff;
1411 label, len);
1415 while (off < len) {
1419 fmt_data(buf, data, len, &off);
1428 const void *data, apr_size_t len,
1432 data, len, flags);
1438 const void *data, apr_size_t len,
1442 data, len, flags);
1448 const void *data, apr_size_t len,
1452 label, data, len, flags);
1458 apr_size_t len, unsigned int flags)
1461 len, flags);