Lines Matching refs:n
127 char n[LI_ITOSTRING_LENGTH]; in __attribute_nonnull__() local
129 li_utostrn(n, sizeof(n), (unsigned long)ts.tv_nsec); in __attribute_nonnull__()
130 memcpy(b->ptr+buffer_clen(b)-nlen-2, n, nlen); in __attribute_nonnull__()
165 const char * const s, const size_t n) in log_buffer_append_encoded() argument
168 for (i = 0; i < n && ' ' <= s[i] && s[i] <= '~'; ++i) ;/*(ASCII isprint())*/ in log_buffer_append_encoded()
169 if (i == n) in log_buffer_append_encoded()
170 buffer_append_string_len(b, s, n); /* common case; nothing to encode */ in log_buffer_append_encoded()
172 buffer_append_string_c_escaped(b, s, n); in log_buffer_append_encoded()
188 unsigned int n; in __attribute_nonnull__() local
192 n = (unsigned int)vsnprintf(s, bsp, fmt, aptry); in __attribute_nonnull__()
195 if ((int)n <= 0) in __attribute_nonnull__()
197 if (n < bsp) in __attribute_nonnull__()
198 buffer_truncate(b, blen+n); /*buffer_commit(b, n);*/ in __attribute_nonnull__()
200 s = buffer_extend(b, n); in __attribute_nonnull__()
201 vsnprintf(s, n+1, fmt, ap); in __attribute_nonnull__()
205 for (i = 0; i < n && ' ' <= s[i] && s[i] <= '~'; ++i) ;/*(ASCII isprint())*/ in __attribute_nonnull__()
206 if (i == n) return; /* common case; nothing to encode */ in __attribute_nonnull__()
210 n -= i; in __attribute_nonnull__()
211 char * const src = (char *)ck_malloc(n); in __attribute_nonnull__()
212 memcpy(src, s+i, n); /*(note: not '\0'-terminated)*/ in __attribute_nonnull__()
214 buffer_append_string_c_escaped(b, src, n); in __attribute_nonnull__()
338 size_t n = (size_t)(pos - current_line); in log_error_multiline() local
339 if (n && current_line[n-1] == '\r') --n; /*(skip "\r\n")*/ in log_error_multiline()
341 log_buffer_append_encoded(b, current_line, n); in log_error_multiline()