Lines Matching defs:bytes
39 * snprintf() `bytes' into `buf', reformatting it so that the number,
40 * plus a possible `x' + suffix extension) fits into len bytes (including
42 * Returns the number of bytes stored in buf, or -1 if there was a problem.
44 * bytes result
52 humanize_number(char *buf, size_t len, uint64_t bytes, const char *suffix,
80 b10 = bytes/10;
85 * but bytes might be ~0 - there is no bigger
87 * the "bytes >= umax" test below
94 for (i = 0; bytes >= umax && prefixes[i + 1]; i++)
95 bytes /= divisor;
97 r = snprintf(buf, len, "%qu%s%c%s", (unsigned long long)bytes,
104 format_bytes(char *buf, size_t len, uint64_t bytes)
109 rv = humanize_number(buf, len, bytes, "B", 1024);