/systemd/src/libudev/ |
H A D | libudev-list.c | 29 * SECTION:libudev-list 30 * @short_description: list operation 32 * Libudev list operations. 38 * Opaque object representing one entry in a list. An entry contains 43 struct udev_list *list; member in struct:udev_list_entry 49 /* the list's head points to itself if empty */ 50 void udev_list_node_init(struct udev_list_node *list) argument 52 list->next = list; 53 list 56 udev_list_node_is_empty(struct udev_list_node *list) argument 71 udev_list_node_append(struct udev_list_node *new, struct udev_list_node *list) argument 94 udev_list_init(struct udev *udev, struct udev_list *list, bool unique) argument 103 udev_list_entry_append(struct udev_list_entry *new, struct udev_list *list) argument 118 list_search(struct udev_list *list, const char *name) argument 142 udev_list_entry_add(struct udev_list *list, const char *name, const char *value) argument 228 struct udev_list *list = entry->list; local 245 udev_list_cleanup(struct udev_list *list) argument 257 udev_list_get_entry(struct udev_list *list) argument [all...] |
H A D | libudev-private.h | 85 /* libudev-list.c */ 97 void udev_list_node_init(struct udev_list_node *list); 98 int udev_list_node_is_empty(struct udev_list_node *list); 99 void udev_list_node_append(struct udev_list_node *new, struct udev_list_node *list); 101 #define udev_list_node_foreach(node, list) \ 102 for (node = (list)->next; \ 103 node != list; \ 105 #define udev_list_node_foreach_safe(node, tmp, list) \ 106 for (node = (list)->next, tmp = (node)->next; \ 107 node != list; \ [all...] |
/systemd/test/TEST-03-JOBS/ |
H A D | test-jobs.sh | 8 systemctl list-jobs > /root/list-jobs.txt 9 while ! grep 'sleep\.service.*running' /root/list-jobs.txt; do 10 systemctl list-jobs > /root/list-jobs.txt 13 grep 'hello\.service.*waiting' /root/list-jobs.txt || exit 1 24 systemctl list-jobs > /root/list-jobs.txt 25 grep 'sleep\.service.*running' /root/list-jobs.txt || exit 1 26 grep 'hello\.service' /root/list [all...] |
/systemd/src/journal/ |
H A D | journal-vacuum.c | 154 struct vacuum_info *list = NULL; local 294 if (!GREEDY_REALLOC(list, n_allocated, n_list + 1)) { 299 list[n_list].filename = p; 300 list[n_list].usage = size; 301 list[n_list].seqnum = seqnum; 302 list[n_list].realtime = realtime; 303 list[n_list].seqnum_id = seqnum_id; 304 list[n_list].have_seqnum = have_seqnum; 311 qsort_safe(list, n_list, sizeof(struct vacuum_info), vacuum_compare); 318 if ((max_retention_usec <= 0 || list[ [all...] |
/systemd/src/udev/ |
H A D | udev-builtin-kmod.c | 33 struct kmod_list *list = NULL; local 37 err = kmod_module_new_from_lookup(ctx, alias, &list); 41 if (list == NULL) 44 kmod_list_foreach(l, list) { 58 kmod_module_unref_list(list);
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | local-addresses.c | 59 _cleanup_free_ struct local_address *list = NULL; local 116 if (!GREEDY_REALLOC0(list, n_allocated, n_list+1)) 119 a = list + n_list; 159 qsort(list, n_list, sizeof(struct local_address), address_compare); 161 *ret = list; 162 list = NULL; 170 _cleanup_free_ struct local_address *list = NULL; local 239 if (!GREEDY_REALLOC0(list, n_allocated, n_list + 1)) 242 a = list + n_list; 270 qsort(list, n_lis [all...] |
/systemd/src/libsystemd/sd-path/ |
H A D | sd-path.c | 397 char ***list, 409 assert(list); 419 *list = l; 470 *list = l; 474 static int get_search(uint64_t type, char ***list) { argument 476 assert(list); 481 return search_from_environment(list, 497 return search_from_environment(list, 510 return search_from_environment(list, 522 return search_from_environment(list, 396 search_from_environment( char ***list, const char *env_home, const char *home_suffix, const char *env_search, bool env_search_sufficient, const char *first, ...) argument [all...] |
/systemd/src/test/ |
H A D | test-netlink-manual.c | 33 struct kmod_list *list = NULL, *l; local 42 r = kmod_module_new_from_lookup(ctx, mod_name, &list); 46 kmod_list_foreach(l, list) { 58 kmod_module_unref_list(list);
|
H A D | test-strv.c | 178 static void test_strv_unquote(const char *quoted, char **list) { argument 186 assert_se(r == (int) strv_length(list)); 193 assert_se(streq(list[i++], *t)); 195 assert_se(list[i] == NULL);
|
/systemd/test/ |
H A D | sysv-generator-test.py | 38 if isinstance(value, list) and key in self: 203 self.assertEqual(list(results), ['foo.service']) 221 self.assertEqual(list(results), ['foo.service']) 293 self.assertEqual(list(results), ['foo.service']) 307 self.assertEqual(list(results), ['foo.service']) 368 self.assertEqual(list(results), ['foo.service']) 387 self.assertEqual(list(results), ['foo.service']) 419 self.assertEqual(list(results), [])
|
H A D | udev-test.pl | 1080 desc => "reset list to current value", 1503 my @list; 1513 push(@list, $arg); 1517 if ($list[0]) { 1518 foreach my $arg (@list) {
|
/systemd/ |
H A D | .ycm_extra_conf.py | 11 return list(itertools.chain.from_iterable(lists))
|
/systemd/src/locale/ |
H A D | localectl.c | 240 return log_error_errno(r, "Failed to read list of locales: %m"); 389 _cleanup_strv_free_ char **list = NULL; local 407 return log_error_errno(errno, "Failed to open keyboard mapping list. %m"); 409 if (streq(args[0], "list-x11-keymap-models")) 411 else if (streq(args[0], "list-x11-keymap-layouts")) 413 else if (streq(args[0], "list-x11-keymap-variants")) 415 else if (streq(args[0], "list-x11-keymap-options")) 469 r = strv_extend(&list, l); 474 if (strv_isempty(list)) { 479 strv_sort(list); [all...] |
/systemd/src/basic/ |
H A D | fs-util.c | 463 int get_files_in_directory(const char *path, char ***list) { argument 470 /* Returns all files in a directory in *list, and the number 471 * of files as return value. If list is NULL returns only the 493 if (list) { 507 if (list) { 508 *list = l;
|
H A D | fs-util.h | 63 int get_files_in_directory(const char *path, char ***list);
|
/systemd/src/shared/ |
H A D | efivars.c | 594 _cleanup_free_ uint16_t *list = NULL; local 620 if (!GREEDY_REALLOC(list, alloc, count + 1)) 623 list[count++] = id; 626 qsort_safe(list, count, sizeof(uint16_t), cmp_uint16); 628 *options = list; 629 list = NULL;
|
H A D | install.c | 1280 char **list, 1310 STRV_FOREACH(s, list) { 1277 install_info_symlink_wants( UnitFileInstallInfo *i, const char *config_path, char **list, const char *suffix, bool force, UnitFileChange **changes, unsigned *n_changes) argument
|
/systemd/tools/ |
H A D | make-man-index.py | 78 index = collections.defaultdict(list)
|
H A D | make-directive-index.py | 309 directive_groups = {name:collections.defaultdict(list)
|
/systemd/src/delta/ |
H A D | delta.c | 218 _cleanup_strv_free_ char **list = NULL; local 240 r = get_files_in_directory(path, &list); 244 STRV_FOREACH(file, list) {
|
/systemd/src/resolve/ |
H A D | resolved-dns-dnssec.c | 585 DnsResourceRecord *list[], 592 assert(list); 597 DnsResourceRecord *rr = list[k]; 622 DnsResourceRecord **list, *rr; local 713 list = newa(DnsResourceRecord *, dns_answer_size(a)); 727 list[n++] = rr; 737 qsort_safe(list, n, sizeof(DnsResourceRecord*), rr_compare); 770 rr = list[k]; 823 dnssec_fix_rrset_ttl(list, n, rrsig, realtime); 584 dnssec_fix_rrset_ttl( DnsResourceRecord *list[], unsigned n, DnsResourceRecord *rrsig, usec_t realtime) argument
|
/systemd/src/bus-proxyd/ |
H A D | bus-xml-policy.c | 49 static void item_append(PolicyItem *i, PolicyItem **list) { argument 53 LIST_FIND_TAIL(items, *list, tail); 54 LIST_INSERT_AFTER(items, *list, tail, i); 1028 return log_error_errno(r, "Failed to get configuration file list: %m");
|
/systemd/src/core/ |
H A D | load-fragment.c | 33 #include "af-list.h" 38 #include "cap-list.h" 44 #include "errno-list.h" 594 /* An empty assignment resets the list */ 943 /* An empty assignment resets the CPU list */ 1381 /* Empty assignment resets list */ 1495 /* Empty assignment clears list */ 2044 /* Empty assignment frees the list */ 2091 /* Empty assignment resets the list */ 2161 /* Empty assignment resets the list */ 2243 Condition **list = data, *c; local 2300 Condition **list = data, *c; local 2351 Condition **list = data, *c; local [all...] |
H A D | dbus-unit.c | 359 Condition **list = userdata, *c; local 364 assert(list); 372 LIST_FOREACH(conditions, c, *list) {
|
/systemd/src/libsystemd/sd-bus/ |
H A D | sd-bus.c | 3467 va_list list; local 3475 va_start(list, path_template); 3480 arg = va_arg(list, const char *); 3482 va_end(list); 3488 va_end(list); 3494 va_end(list); 3501 va_end(list); 3529 va_list list; local 3610 va_start(list, path_template); 3614 arg = va_arg(list, cha [all...] |