/systemd/src/resolve/ |
H A D | resolved-resolv-conf.c | 147 static void write_resolv_conf_server(DnsServer *s, FILE *f, unsigned *count) { argument 150 assert(count); 159 if (*count == MAXNS) 161 (*count) ++; 169 unsigned *count, 176 if (*count >= MAXDNSRCH || 178 if (*count == MAXDNSRCH) 187 (*count) ++; 205 unsigned count = 0; local 209 write_resolv_conf_server(s, f, &count); 166 write_resolv_conf_search( const char *domain, FILE *f, unsigned *count, unsigned *length) argument 213 unsigned length = 0, count = 0; local [all...] |
/systemd/src/journal-remote/ |
H A D | journal-remote-write.c | 24 if (!GREEDY_REALLOC(iovw->iovec, iovw->size_bytes, iovw->count + 1)) 27 iovw->iovec[iovw->count++] = (struct iovec) {data, len}; 33 iovw->size_bytes = iovw->count = 0; 39 for (i = 0; i < iovw->count; i++) 48 for (i = 0; i < iovw->count; i++) 134 assert(iovw->count > 0); 144 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count, 160 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count,
|
H A D | journal-remote-write.h | 30 size_t count; member in struct:iovec_wrapper
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-types.c | 69 uint16_t count; member in struct:NLTypeSystem 80 .count = 0, 163 .count = ELEMENTSOF(rtnl_bond_arp_target_types), 275 [NL_UNION_LINK_INFO_DATA_BOND] = { .count = ELEMENTSOF(rtnl_link_info_data_bond_types), 277 [NL_UNION_LINK_INFO_DATA_BRIDGE] = { .count = ELEMENTSOF(rtnl_link_info_data_bridge_types), 279 [NL_UNION_LINK_INFO_DATA_VLAN] = { .count = ELEMENTSOF(rtnl_link_info_data_vlan_types), 281 [NL_UNION_LINK_INFO_DATA_VETH] = { .count = ELEMENTSOF(rtnl_link_info_data_veth_types), 283 [NL_UNION_LINK_INFO_DATA_MACVLAN] = { .count = ELEMENTSOF(rtnl_link_info_data_macvlan_types), 285 [NL_UNION_LINK_INFO_DATA_MACVTAP] = { .count = ELEMENTSOF(rtnl_link_info_data_macvlan_types), 287 [NL_UNION_LINK_INFO_DATA_IPVLAN] = { .count [all...] |
/systemd/tools/ |
H A D | make-man-index.py | 69 This index contains {count} entries, referring to {pages} individual manual pages.' 109 count = 0 112 count += len(group) 121 para.text = COUNTS.format(count=count, pages=len(pages))
|
H A D | make-directive-index.py | 186 This index contains {count} entries in {sections} sections, 277 count = 0 280 count += len(group) 285 para.text = COLOPHON.format(count=count,
|
/systemd/src/journal/ |
H A D | test-compress-benchmark.c | 56 static char* make_buf(size_t count, const char *type) { argument 60 buf = malloc(count); 64 memzero(buf, count); 66 for (i = 0; i < count; i++) 69 size_t step = count / 10;
|
H A D | test-journal-interleaving.c | 100 static void test_check_numbers_down (sd_journal *j, int count) { argument 103 for (i = 1; i <= count; i++) { 107 if (i == count) 115 static void test_check_numbers_up (sd_journal *j, int count) { argument 116 for (int i = count; i >= 1; i--) {
|
H A D | journalctl.c | 1079 int r, count = 0; local 1121 count = 1; 1153 count = 1; 1161 count++; 1171 return count; 1175 int w, i, count; local 1180 count = get_boots(j, &all_ids, NULL, 0); 1181 if (count < 0) 1182 return log_error_errno(count, "Failed to determine boots: %m"); 1183 if (count 1342 int r, count = 0; local [all...] |
/systemd/src/test/ |
H A D | test-libudev.c | 37 int count; local 78 count = 0; 81 count++; 83 if (count > 0) 84 printf("found %i links\n", count); 86 count = 0; 91 count++; 93 if (count > 0) 94 printf("found %i properties\n", count); 195 int count local [all...] |
H A D | test-rbtree.c | 75 size_t count = 0; local 80 /* traverse to left-most child, count black nodes */ 103 ++count; 154 return count;
|
H A D | test-hashmap-plain.c | 492 unsigned count; local 505 count = 0; 507 count++; 508 assert_se(count == 0); 512 count = 0; 514 count++; 515 assert_se(count == 0);
|
/systemd/src/core/ |
H A D | killall.c | 42 size_t count; local 63 count = fread(&c, 1, 1, f); 66 if (count <= 0)
|
/systemd/src/activate/ |
H A D | activate.c | 66 int count = 0; local 79 count ++; 106 assert(fd == SD_LISTEN_FDS_START + count); 107 count ++; 117 for (fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + count; fd++) { 128 return count;
|
/systemd/src/udev/ |
H A D | udev-event.c | 292 int count; local 320 count = util_replace_chars(vbuf, UDEV_ALLOWED_CHARS_INPUT); 321 if (count > 0) 322 log_debug("%i character(s) replaced" , count); 527 ssize_t count; local 530 count = read(*fd, buf, sizeof(buf)-1); 531 if (count <= 0) 533 buf[count] = '\0'; 537 if (respos + count < ressize) { 538 memcpy(&result[respos], buf, count); [all...] |
H A D | udev-rules.c | 340 log_debug("* RULE %s:%u, token: %u, count: %u, label: '%s'", 2084 int count; local 2088 count = util_replace_chars(result, UDEV_ALLOWED_CHARS_INPUT); 2089 if (count > 0) 2090 log_debug("%i character(s) replaced" , count); 2418 int count; local 2426 count = util_replace_chars(name_str, "/"); 2427 if (count > 0) 2428 log_debug("%i character(s) replaced", count); 2448 int count local [all...] |
/systemd/src/libsystemd-network/ |
H A D | dhcp6-internal.h | 68 struct in6_addr **addrs, size_t count,
|
H A D | dhcp6-option.c | 324 struct in6_addr **addrs, size_t count, 331 count * sizeof(struct in6_addr) + optlen)) 334 memcpy(*addrs + count, optval, optlen); 336 count += optlen / sizeof(struct in6_addr); 338 return count; 323 dhcp6_option_parse_ip6addrs(uint8_t *optval, uint16_t optlen, struct in6_addr **addrs, size_t count, size_t *allocated) argument
|
H A D | sd-lldp.c | 730 unsigned count = 0, i; local 737 count++; 740 if (!count) { 745 *tlvs = new(sd_lldp_packet *, count); 755 return count;
|
/systemd/src/analyze/ |
H A D | analyze-verify.c | 246 int i, count = 0; local 287 k = manager_load_unit(m, NULL, prepared, &err, &units[count]); 293 count ++; 296 for (i = 0; i < count; i++) {
|
/systemd/test/ |
H A D | test-efi-create-disk.sh | 5 dd if=/dev/null of=test-efi-disk.img bs=1M seek=512 count=1
|
/systemd/src/libudev/ |
H A D | libudev-monitor.c | 313 /* count tag matches, to calculate end of tag match block */ 715 ssize_t blen, count; local 771 count = sendmsg(udev_monitor->sock, &smsg, 0); 772 if (count < 0) { 780 log_debug("passed %zi byte device to netlink monitor %p", count, udev_monitor); 781 return count;
|
/systemd/src/shared/ |
H A D | efivars.c | 596 int count = 0; local 620 if (!GREEDY_REALLOC(list, alloc, count + 1)) 623 list[count++] = id; 626 qsort_safe(list, count, sizeof(uint16_t), cmp_uint16); 630 return count;
|
/systemd/src/basic/ |
H A D | process-util.c | 230 size_t count; local 248 count = fread(&c, 1, 1, f); 254 if (count <= 0)
|
/systemd/src/libsystemd/sd-hwdb/ |
H A D | sd-hwdb.c | 91 static void linebuf_rem(struct linebuf *buf, size_t count) { argument 92 assert(buf->len >= count); 93 buf->len -= count;
|