Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/shared/
Duserdb.c55 UserDBIterator* userdb_iterator_free(UserDBIterator *iterator) { in userdb_iterator_free() argument
56 if (!iterator) in userdb_iterator_free()
59 set_free(iterator->links); in userdb_iterator_free()
60 strv_free(iterator->dropins); in userdb_iterator_free()
62 switch (iterator->what) { in userdb_iterator_free()
65 user_record_unref(iterator->found_user); in userdb_iterator_free()
67 if (iterator->nss_iterating) in userdb_iterator_free()
73 group_record_unref(iterator->found_group); in userdb_iterator_free()
75 if (iterator->nss_iterating) in userdb_iterator_free()
81 free(iterator->found_user_name); in userdb_iterator_free()
[all …]
Duserdb.h14 UserDBIterator *userdb_iterator_free(UserDBIterator *iterator);
45 int userdb_iterator_get(UserDBIterator *iterator, UserRecord **ret);
50 int groupdb_iterator_get(UserDBIterator *iterator, GroupRecord **ret);
55 int membershipdb_iterator_get(UserDBIterator *iterator, char **user, char **group);
Duser-record-show.c174 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in user_record_show()
176 r = membershipdb_by_user(hr->user_name, 0, &iterator); in user_record_show()
186 r = membershipdb_iterator_get(iterator, NULL, &group); in user_record_show()
527 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in group_record_show()
529 r = membershipdb_by_group(gr->group_name, 0, &iterator); in group_record_show()
539 r = membershipdb_iterator_get(iterator, &user, NULL); in group_record_show()
/systemd-251/src/nss-systemd/
Dnss-systemd.c96 UserDBIterator *iterator; member
569 p->iterator = userdb_iterator_free(p->iterator); in nss_systemd_endent()
603 getpwent_data.iterator = userdb_iterator_free(getpwent_data.iterator); in _nss_systemd_setpwent()
611 r = userdb_all(nss_glue_userdb_flags() | USERDB_DONT_SYNTHESIZE, &getpwent_data.iterator); in _nss_systemd_setpwent()
627 getgrent_data.iterator = userdb_iterator_free(getgrent_data.iterator); in _nss_systemd_setgrent()
631 r = groupdb_all(nss_glue_userdb_flags() | USERDB_DONT_SYNTHESIZE, &getgrent_data.iterator); in _nss_systemd_setgrent()
647 getspent_data.iterator = userdb_iterator_free(getspent_data.iterator); in _nss_systemd_setspent()
651 r = userdb_all(nss_glue_userdb_flags() | USERDB_DONT_SYNTHESIZE, &getspent_data.iterator); in _nss_systemd_setspent()
667 getsgent_data.iterator = userdb_iterator_free(getsgent_data.iterator); in _nss_systemd_setsgent()
671 r = groupdb_all(nss_glue_userdb_flags() | USERDB_DONT_SYNTHESIZE, &getsgent_data.iterator); in _nss_systemd_setsgent()
[all …]
/systemd-251/src/resolve/
Dresolved-dns-answer.h102 Iterator iterator; member
108 for (DnsAnswerIterator i = { .iterator = ITERATOR_FIRST, .answer = (a) }; \
110 ordered_set_iterate(i.answer->items, &i.iterator, (void**) &(i.item)) && \
116 for (DnsAnswerIterator i = { .iterator = ITERATOR_FIRST, .answer = (a) }; \
118 ordered_set_iterate(i.answer->items, &i.iterator, (void**) &(i.item)) && \
124 for (DnsAnswerIterator i = { .iterator = ITERATOR_FIRST, .answer = (a) }; \
126 ordered_set_iterate(i.answer->items, &i.iterator, (void**) &(i.item)) && \
132 for (DnsAnswerIterator i = { .iterator = ITERATOR_FIRST, .answer = (a) }; \
134 ordered_set_iterate(i.answer->items, &i.iterator, (void**) &(i.item)) && \
/systemd-251/src/userdb/
Duserwork.c164 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in vl_method_get_user_record()
167 r = userdb_all(userdb_flags, &iterator); in vl_method_get_user_record()
182 r = userdb_iterator_get(iterator, &z); in vl_method_get_user_record()
299 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in vl_method_get_group_record()
302 r = groupdb_all(userdb_flags, &iterator); in vl_method_get_group_record()
311 r = groupdb_iterator_get(iterator, &z); in vl_method_get_group_record()
362 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in vl_method_get_memberships()
378 r = membershipdb_by_group(p.group_name, userdb_flags, &iterator); in vl_method_get_memberships()
380 r = membershipdb_by_user(p.user_name, userdb_flags, &iterator); in vl_method_get_memberships()
382 r = membershipdb_all(userdb_flags, &iterator); in vl_method_get_memberships()
[all …]
Duserdbctl.c398 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in display_user()
400 r = userdb_all(arg_userdb_flags, &iterator); in display_user()
411 r = userdb_iterator_get(iterator, &ur); in display_user()
707 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in display_group()
709 r = groupdb_all(arg_userdb_flags, &iterator); in display_group()
720 r = groupdb_iterator_get(iterator, &gr); in display_group()
846 _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL; in display_memberships()
849 r = membershipdb_by_group(*i, arg_userdb_flags, &iterator); in display_memberships()
853 r = membershipdb_by_user(*i, arg_userdb_flags, &iterator); in display_memberships()
862 r = membershipdb_iterator_get(iterator, &user, &group); in display_memberships()
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dbus-track.c24 Iterator iterator; member
310 track->iterator = ITERATOR_FIRST; in sd_bus_track_first()
312 (void) hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n); in sd_bus_track_first()
325 (void) hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n); in sd_bus_track_next()