Lines Matching refs:len
103 size_t len, len2; in fpm_log_write() local
145 len = 0; in fpm_log_write()
152 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
154 len = FPM_LOG_BUFFER; in fpm_log_write()
196 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu… in fpm_log_write()
205 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 10… in fpm_log_write()
211 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_u… in fpm_log_write()
217 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.t… in fpm_log_write()
235 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); in fpm_log_write()
242 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.script_filename ? proc.script_filename : "-"… in fpm_log_write()
248 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length); in fpm_log_write()
254 … len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.request_method ? proc.request_method : "-"); in fpm_log_write()
262 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); in fpm_log_write()
268 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory / 1024); in fpm_log_write()
274 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory / 1024 / 1024); in fpm_log_write()
286 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", scoreboard->pool[0] ? scoreboard->pool : "-"); in fpm_log_write()
325 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", header && *header ? header : "-"); in fpm_log_write()
340 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getpid()); in fpm_log_write()
346 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%ld", (long)getppid()); in fpm_log_write()
352 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.query_string); in fpm_log_write()
358 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", *proc.query_string ? "?" : ""); in fpm_log_write()
364 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.request_uri); in fpm_log_write()
371 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp ? tmp : "-"); in fpm_log_write()
377 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
395 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write()
402 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", proc.auth_user); in fpm_log_write()
447 len += len2; in fpm_log_write()
449 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
451 len = FPM_LOG_BUFFER; in fpm_log_write()
461 len++; in fpm_log_write()
467 buffer[len] = '\n'; in fpm_log_write()
468 zend_quiet_write(fpm_log_fd, buffer, len + 1); in fpm_log_write()