Lines Matching refs:buf
92 int get_current_time_long(char *buf) in get_current_time_long() argument
102 return strftime(buf, LONG_TIME_SIZE, "%Y-%m-%d/%H:%M:%S ", time_val); in get_current_time_long()
108 char buf[VERSION_SIZE]; in compute_key() local
122 len = snprintf(buf, VERSION_SIZE, "%s%s%lld", in compute_key()
130 EVP_DigestUpdate(mdctx, (unsigned char *)buf, strnlen(buf, VERSION_SIZE)); in compute_key()
137 SHA256_Update(&sha, (unsigned char *)buf, strnlen(buf, VERSION_SIZE)); in compute_key()
168 char *buf; in generate_event_id() local
189 if (asprintf(&buf, "%s%s", seed1, seed2) == -1) { in generate_event_id()
194 ret = compute_key(key, klen, (const char *)buf, slen1 + slen2); in generate_event_id()
195 free(buf); in generate_event_id()
308 char *buf; in generate_crashfile() local
340 buf = malloc(filesize); in generate_crashfile()
341 if (buf == NULL) { in generate_crashfile()
346 tail = cf_line(buf, "EVENT=", 6, event, elen); in generate_crashfile()
366 free(buf); in generate_crashfile()
370 if (overwrite_file(path, buf) != 0) in generate_crashfile()
374 free(buf); in generate_crashfile()