Searched defs:count (Results 1 - 25 of 26) sorted by relevance

12

/systemd/src/journal-remote/
H A Djournal-remote-write.h30 size_t count; member in struct:iovec_wrapper
/systemd/src/resolve/
H A Dresolved-resolv-conf.c147 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/core/
H A Dkillall.c42 size_t count; local
63 count = fread(&c, 1, 1, f);
66 if (count <= 0)
H A Dexecute.c2303 int count, n; local
2329 count = pglob.gl_pathc;
2330 if (count == 0) {
2337 for (n = 0; n < count; n++) {
/systemd/src/journal/
H A Dtest-compress-benchmark.c56 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 Dtest-journal-interleaving.c100 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 Djournalctl.c1079 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/analyze/
H A Danalyze-verify.c246 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/src/test/
H A Dtest-rbtree.c75 size_t count = 0; local
80 /* traverse to left-most child, count black nodes */
103 ++count;
154 return count;
H A Dtest-libudev.c37 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 Dtest-hashmap-plain.c492 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/libsystemd-network/
H A Ddhcp6-option.c324 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 Dsd-lldp.c730 unsigned count = 0, i; local
737 count++;
740 if (!count) {
745 *tlvs = new(sd_lldp_packet *, count);
755 return count;
/systemd/src/activate/
H A Dactivate.c66 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/basic/
H A Dprocess-util.c230 size_t count; local
248 count = fread(&c, 1, 1, f);
254 if (count <= 0)
/systemd/src/libsystemd/sd-hwdb/
H A Dsd-hwdb.c91 static void linebuf_rem(struct linebuf *buf, size_t count) { argument
92 assert(buf->len >= count);
93 buf->len -= count;
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-message.c732 int count,
737 attributes = new0(struct netlink_attribute, count);
748 if (type >= count)
761 container->n_attributes = count;
730 netlink_container_parse(sd_netlink_message *m, struct netlink_container *container, int count, struct rtattr *rta, unsigned int rt_len) argument
H A Dnetlink-types.c69 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/src/udev/
H A Dudev-ctrl.c312 int udev_ctrl_send_set_children_max(struct udev_ctrl *uctrl, int count, int timeout) { argument
313 return ctrl_send(uctrl, UDEV_CTRL_SET_CHILDREN_MAX, count, NULL, timeout);
H A Dudev-event.c292 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 Dudevd.c560 ssize_t count; local
565 count = udev_monitor_send_device(manager->monitor, worker->monitor, event->dev);
566 if (count < 0) {
568 worker->pid, count);
H A Dudev-rules.c340 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/libudev/
H A Dlibudev-monitor.c313 /* 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 Defivars.c596 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/tmpfiles/
H A Dtmpfiles.c147 size_t count; member in struct:ItemArray
221 for (n = 0; n < j->count; n++) {
1708 for (n = 0; n < array->count; n++) {
1735 for (n = 0; n < a->count; n++)
2073 for (n = 0; n < existing->count; n++) {
2087 if (!GREEDY_REALLOC(existing->items, existing->size, existing->count + 1))
2090 memcpy(existing->items + existing->count++, &i, sizeof(i));
2093 qsort_safe(existing->items, existing->count, sizeof(Item), item_compare);

Completed in 192 milliseconds

12