| /systemd/src/systemd/ |
| H A D | sd-id128.h | 35 uint8_t bytes[16]; member in union:sd_id128 52 ((const sd_id128_t) { .bytes = { 0x##v0, 0x##v1, 0x##v2, 0x##v3, 0x##v4, 0x##v5, 0x##v6, 0x##v7, \ 56 { .bytes = { 0x##v0, 0x##v1, 0x##v2, 0x##v3, 0x##v4, 0x##v5, 0x##v6, 0x##v7, \ 65 #define SD_ID128_FORMAT_VAL(x) (x).bytes[0], (x).bytes[1], (x).bytes[2], (x).bytes[3], (x).bytes[4], (x).bytes[5], (x).bytes[ [all...] |
| /systemd/src/journal-remote/ |
| H A D | log-generator.py | 42 bytes = 0 variable 67 bytes += len(entry) 76 print('Wrote {} bytes'.format(bytes), file=sys.stderr)
|
| /systemd/src/test/ |
| H A D | test-parse-util.c | 99 uint64_t bytes; local 101 assert_se(parse_size("111", 1024, &bytes) == 0); 102 assert_se(bytes == 111); 104 assert_se(parse_size("111.4", 1024, &bytes) == 0); 105 assert_se(bytes == 111); 107 assert_se(parse_size(" 112 B", 1024, &bytes) == 0); 108 assert_se(bytes == 112); 110 assert_se(parse_size(" 112.6 B", 1024, &bytes) == 0); 111 assert_se(bytes == 112); 113 assert_se(parse_size("3.5 K", 1024, &bytes) [all...] |
| /systemd/src/import/ |
| H A D | pull-job.c | 435 char bytes[FORMAT_BYTES_MAX]; local 443 log_info("Downloading %s for %s.", format_bytes(bytes, sizeof(bytes), j->content_length), j->url);
|
| /systemd/src/libsystemd/sd-hwdb/ |
| H A D | sd-hwdb.c | 59 char bytes[LINE_MAX]; member in struct:linebuf 70 if (buf->len + 1 >= sizeof(buf->bytes)) 72 buf->bytes[buf->len] = '\0'; 73 return buf->bytes; 77 if (buf->len + len >= sizeof(buf->bytes)) 79 memcpy(buf->bytes + buf->len, s, len); 85 if (buf->len + 1 >= sizeof(buf->bytes)) 87 buf->bytes[buf->len++] = c; 326 log_debug("file size: %8"PRIi64" bytes", hwdb->st.st_size); 327 log_debug("header size %8"PRIu64" bytes", le64to [all...] |
| /systemd/src/shared/ |
| H A D | conf-parser.c | 537 uint64_t *bytes = data; local 545 r = parse_size(rvalue, 1024, bytes);
|
| H A D | logs-show.c | 393 char bytes[FORMAT_BYTES_MAX]; local 394 fprintf(f, ": [%s blob data]\n", format_bytes(bytes, sizeof(bytes), message_len)); 484 char bytes[FORMAT_BYTES_MAX]; local 490 format_bytes(bytes, sizeof(bytes), length - (c - (const char *) data) - 1),
|
| H A D | bus-util.c | 1011 memcpy((*p).bytes, v, n); 1505 uint64_t bytes; local 1508 bytes = (uint64_t) -1; 1510 r = parse_size(eq, 1024, &bytes); 1512 log_error("Failed to parse bytes specification %s", assignment); 1517 r = sd_bus_message_append(m, "v", "t", bytes); 1617 uint64_t bytes; local 1633 r = parse_size(bandwidth, 1000, &bytes); 1639 r = sd_bus_message_append(m, "v", "a(st)", 1, path, bytes);
|
| /systemd/src/libsystemd-network/ |
| H A D | sd-ndisc.c | 283 uint8_t bytes, mask, len; local 290 bytes = len / 8; 293 if (memcmp(prefix, addr, bytes) != 0 || 294 (prefix->s6_addr[bytes] & mask) != (addr->s6_addr[bytes] & mask)) 469 log_ndisc(nd, "Router Advertisement contains %zd bytes of trailing garbage", len); 528 log_ndisc(nd, "Received invalid source address size from ICMPv6 socket: %zu bytes", (size_t)msg.msg_namelen);
|
| /systemd/src/core/ |
| H A D | load-fragment.c | 2884 uint64_t bytes; local 2892 r = parse_size(rvalue, 1024, &bytes); 2893 if (r < 0 || bytes < 1) { 2898 c->memory_limit = bytes; 3106 uint64_t bytes; local 3145 r = parse_size(bandwidth, 1000, &bytes); 3146 if (r < 0 || bytes <= 0) { 3157 b->bandwidth = bytes;
|
| /systemd/src/journal/ |
| H A D | journal-file.c | 630 /* We estimate that we need 1 hash table entry per 768 bytes 2596 char bytes[FORMAT_BYTES_MAX]; local 2667 printf("Disk usage: %s\n", format_bytes(bytes, sizeof(bytes), (uint64_t) st.st_blocks * 512ULL)); 3286 log_debug("Data hash table of %s has a fill level at %.1f (%"PRIu64" of %"PRIu64" items, %llu file size, %"PRIu64" bytes per hash table item), suggesting rotation.",
|
| H A D | journalctl.c | 888 printf("%02x%s", id.bytes[i], i != 15 ? "," : ""); 2143 uint64_t bytes = 0; local 2146 r = sd_journal_get_usage(j, &bytes); 2151 format_bytes(sbytes, sizeof(sbytes), bytes));
|
| H A D | sd-journal.c | 2384 _public_ int sd_journal_get_usage(sd_journal *j, uint64_t *bytes) { argument 2391 assert_return(bytes, -EINVAL); 2402 *bytes = sum;
|