Home
last modified time | relevance | path

Searched refs:n_items (Results 1 – 13 of 13) sorted by relevance

/systemd-251/src/basic/ !
Dprioq.c27 unsigned n_items, n_allocated; member
69 assert(j < q->n_items); in swap()
70 assert(k < q->n_items); in swap()
87 assert(idx < q->n_items); in shuffle_up()
113 if (j >= q->n_items) in shuffle_down()
124 if (k < q->n_items && in shuffle_down()
150 if (q->n_items >= q->n_allocated) { in prioq_put()
154 n = MAX((q->n_items+1) * 2, 16u); in prioq_put()
163 k = q->n_items++; in prioq_put()
192 l = q->items + q->n_items - 1; in remove_item()
[all …]
/systemd-251/src/boot/efi/ !
Dcpio.c321 UINTN dirent_size = 0, buffer_size = 0, n_items = 0, n_allocated = 0; in pack_cpio() local
396 if (n_items+2 > n_allocated) { in pack_cpio()
400 … if (n_items > (UINTN_MAX / sizeof(UINT16)) - 16) /* Overflow check, just in case */ in pack_cpio()
403 m = n_items + 16; in pack_cpio()
408 items[n_items++] = TAKE_PTR(d); in pack_cpio()
409 … items[n_items] = NULL; /* Let's always NUL terminate, to make freeing via strv_free() easy */ in pack_cpio()
412 if (n_items == 0) { in pack_cpio()
421 sort_pointer_array((void**) items, n_items, (compare_pointer_func_t) StrCmp); in pack_cpio()
429 for (UINTN i = 0; i < n_items; i++) { in pack_cpio()
/systemd-251/src/libsystemd/sd-journal/ !
Dcatalog.c45 le64_t n_items; member
397 .n_items = htole64(n), in write_catalog()
535 le64toh(h->n_items) <= 0 || in open_mmap()
536 …t_size < (off_t) (le64toh(h->header_size) + le64toh(h->catalog_item_size) * le64toh(h->n_items))) { in open_mmap()
566 le64toh(h->n_items), in find_id()
577 le64toh(h->n_items), in find_id()
589 le64toh(h->n_items), in find_id()
599 le64toh(h->n_items) * le64toh(h->catalog_item_size) + in find_id()
688 for (n = 0; n < le64toh(h->n_items); n++) { in catalog_list()
Djournal-file.c1869 const EntryItem items[], unsigned n_items, in journal_file_append_entry_internal() argument
1879 assert(items || n_items == 0); in journal_file_append_entry_internal()
1882 osize = offsetof(Object, entry.items) + (n_items * sizeof(EntryItem)); in journal_file_append_entry_internal()
1889 memcpy_safe(o->entry.items, items, n_items * sizeof(EntryItem)); in journal_file_append_entry_internal()
/systemd-251/src/udev/ !
Dudevadm-info.c89 size_t n_items = 0; in print_all_attributes() local
134 if (!GREEDY_REALLOC(sysattrs, n_items + 1)) in print_all_attributes()
137 sysattrs[n_items] = (SysAttr) { in print_all_attributes()
141 n_items++; in print_all_attributes()
144 typesafe_qsort(sysattrs, n_items, sysattr_compare); in print_all_attributes()
146 for (size_t i = 0; i < n_items; i++) in print_all_attributes()
/systemd-251/src/journal/ !
Dmanaged-journal-file.c42 uint64_t offset, sz, n_items = 0, n_unused; in managed_journal_file_entry_array_punch_hole() local
53 n_items += journal_file_entry_array_n_items(&o); in managed_journal_file_entry_array_punch_hole()
60 if (n_entries > n_items) in managed_journal_file_entry_array_punch_hole()
64 n_unused = n_items - n_entries; in managed_journal_file_entry_array_punch_hole()
/systemd-251/src/tmpfiles/ !
Dtmpfiles.c165 size_t n_items; member
388 for (n = 0; n < j->n_items; n++) { in find_glob()
2611 for (n = 0; n < array->n_items; n++) { in process_item_array()
2640 for (n = 0; n < a->n_items; n++) in item_array_free()
2904 for (size_t n = 0; n < existing->n_items; n++) { in is_duplicated_item()
3287 if (!GREEDY_REALLOC(existing->items, existing->n_items + 1)) in parse_line()
3290 existing->items[existing->n_items++] = i; in parse_line()
3294 typesafe_qsort(existing->items, existing->n_items, item_compare); in parse_line()
3579 for (size_t ni = 0; ni < ia->n_items; ni++) { in read_config_file()
3587 for (size_t nj = 0; nj < ja->n_items; nj++) { in read_config_file()
[all …]
/systemd-251/src/core/ !
Dexecute.c1956 if (c->directories[t].n_items == 0) in build_environment()
1963 for (size_t i = 0; i < c->directories[t].n_items; i++) { in build_environment()
2090 if (context->directories[t].n_items > 0) in exec_needs_mount_namespace()
2096 (context->directories[EXEC_DIRECTORY_STATE].n_items > 0 || in exec_needs_mount_namespace()
2097 context->directories[EXEC_DIRECTORY_CACHE].n_items > 0 || in exec_needs_mount_namespace()
2098 context->directories[EXEC_DIRECTORY_LOGS].n_items > 0)) in exec_needs_mount_namespace()
2341 for (size_t i = 0; i < context->directories[type].n_items; i++) { in setup_exec_directory()
2528 for (size_t i = 0; i < context->directories[type].n_items; i++) { in setup_exec_directory()
3303 n += context->directories[t].n_items; in compile_bind_mounts()
3347 if (context->directories[t].n_items == 0) in compile_bind_mounts()
[all …]
Dexecute.h142 size_t n_items; member
Ddbus-execute.c1101 for (size_t i = 0; i < d->n_items; i++) { in bus_property_get_exec_dir()
1131 for (size_t i = 0; i < d->n_items; i++) in bus_property_get_exec_dir_symlink()
3352 … r = exec_directory_add(&d->items, &d->n_items, *source, NULL); in bus_exec_context_set_transient_property()
3802 for (size_t j = 0; j < directory->n_items; ++j) in bus_exec_context_set_transient_property()
3811 … r = exec_directory_add(&directory->items, &directory->n_items, source, STRV_MAKE(destination)); in bus_exec_context_set_transient_property()
Dunit.c1269 for (size_t i = 0; i < c->directories[dt].n_items; i++) { in unit_add_exec_dependencies()
1287 if (c->directories[EXEC_DIRECTORY_STATE].n_items > 0 || in unit_add_exec_dependencies()
1288 c->directories[EXEC_DIRECTORY_CACHE].n_items > 0 || in unit_add_exec_dependencies()
1289 c->directories[EXEC_DIRECTORY_LOGS].n_items > 0) { in unit_add_exec_dependencies()
Dload-fragment.c4689 r = exec_directory_add(&ed->items, &ed->n_items, sresolved, symlinks); in config_parse_exec_directories()
/systemd-251/src/shared/ !
Dbtrfs-util.c1691 size_t n_items = 0; in btrfs_qgroup_find_parents() local
1738 if (!GREEDY_REALLOC(items, n_items+1)) in btrfs_qgroup_find_parents()
1741 items[n_items++] = sh->offset; in btrfs_qgroup_find_parents()
1749 if (n_items <= 0) { in btrfs_qgroup_find_parents()
1756 return (int) n_items; in btrfs_qgroup_find_parents()