/systemd/src/test/ |
H A D | test-hashmap.c | 32 assert_se(ordered_hashmap_put(m, INT_TO_PTR(i), INT_TO_PTR(i+10)) == 1); 34 assert_se(ordered_hashmap_next(m, INT_TO_PTR(i)) == INT_TO_PTR(i+11)); 35 assert_se(!ordered_hashmap_next(m, INT_TO_PTR(2))); 36 assert_se(!ordered_hashmap_next(NULL, INT_TO_PTR(1))); 37 assert_se(!ordered_hashmap_next(m, INT_TO_PTR(3))); 49 assert_se(trivial_compare_func(INT_TO_PTR('a'), INT_TO_PTR('a')) == 0); 50 assert_se(trivial_compare_func(INT_TO_PTR(' [all...] |
H A D | test-hashmap-plain.c | 698 return trivial_hash_func(INT_TO_PTR(PTR_TO_INT(p) & 0xff), state);
|
/systemd/src/basic/ |
H A D | exit-status.c | 190 set_contains(success_status->status, INT_TO_PTR(status))); 201 set_contains(success_status->signal, INT_TO_PTR(status))); 236 if (code == CLD_EXITED && set_contains(x->status, INT_TO_PTR(status))) 239 if (IN_SET(code, CLD_KILLED, CLD_DUMPED) && set_contains(x->signal, INT_TO_PTR(status)))
|
H A D | xml.c | 98 *state = INT_TO_PTR(STATE_TEXT); 161 *state = INT_TO_PTR(STATE_TAG); 184 *state = INT_TO_PTR(STATE_ATTRIBUTE); 194 *state = INT_TO_PTR(STATE_TEXT); 226 *state = INT_TO_PTR(STATE_TAG); 244 *state = INT_TO_PTR(STATE_TAG);
|
H A D | json.c | 515 *state = INT_TO_PTR(STATE_VALUE); 522 *state = INT_TO_PTR(STATE_VALUE_POST); 529 *state = INT_TO_PTR(STATE_VALUE); 536 *state = INT_TO_PTR(STATE_VALUE_POST); 546 *state = INT_TO_PTR(STATE_VALUE_POST); 556 *state = INT_TO_PTR(STATE_VALUE_POST); 563 *state = INT_TO_PTR(STATE_VALUE_POST); 570 *state = INT_TO_PTR(STATE_VALUE_POST); 577 *state = INT_TO_PTR(STATE_VALUE_POST); 589 *state = INT_TO_PTR(STATE_VALU [all...] |
H A D | fd-util.h | 30 #define FD_TO_PTR(fd) INT_TO_PTR((fd)+1)
|
H A D | macro.h | 273 #define INT_TO_PTR(u) ((void *) ((intptr_t) (u))) macro
|
/systemd/src/libsystemd/sd-event/ |
H A D | test-event.c | 46 if (userdata == INT_TO_PTR('a')) { 50 } else if (userdata == INT_TO_PTR('b')) { 53 } else if (userdata == INT_TO_PTR('d')) { 72 assert_se(userdata == INT_TO_PTR('f')); 89 assert_se(userdata == INT_TO_PTR('e')); 99 assert_se(sd_event_add_child(sd_event_source_get_event(s), &p, pid, WEXITED, child_handler, INT_TO_PTR('f')) >= 0); 114 assert_se(userdata == INT_TO_PTR('d')); 118 assert_se(sd_event_add_signal(sd_event_source_get_event(s), &p, SIGUSR1, signal_handler, INT_TO_PTR('e')) >= 0); 132 if (userdata == INT_TO_PTR('c')) { 137 assert_se(sd_event_add_defer(sd_event_source_get_event(s), &p, defer_handler, INT_TO_PTR(' [all...] |
H A D | sd-event.c | 2535 if (ev_queue[i].data.ptr == INT_TO_PTR(SOURCE_WATCHDOG)) 2859 ev.data.ptr = INT_TO_PTR(SOURCE_WATCHDOG);
|
/systemd/src/network/ |
H A D | networkd-wait-online-link.c | 58 r = hashmap_put(m->links, INT_TO_PTR(ifindex), l); 75 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
|
H A D | networkd-wait-online-manager.c | 122 l = hashmap_get(m->links, INT_TO_PTR(ifindex)); 293 r = sd_event_add_time(m->event, NULL, clock_boottime_or_monotonic(), usec, 0, NULL, INT_TO_PTR(-ETIMEDOUT));
|
H A D | networkd-link.c | 361 r = hashmap_put(manager->links, INT_TO_PTR(link->ifindex), link); 413 hashmap_remove(link->manager->links, INT_TO_PTR(link->ifindex)); 423 hashmap_remove(link->bound_to_links, INT_TO_PTR(carrier->ifindex)); 427 hashmap_remove(link->bound_by_links, INT_TO_PTR(carrier->ifindex)); 467 link = hashmap_get(m->links, INT_TO_PTR(ifindex)); 1536 if (hashmap_get(*h, INT_TO_PTR(carrier->ifindex))) 1543 r = hashmap_put(*h, INT_TO_PTR(carrier->ifindex), carrier); 1661 hashmap_remove(link->bound_to_links, INT_TO_PTR(bound_to->ifindex)); 1663 if (hashmap_remove(bound_to->bound_by_links, INT_TO_PTR(link->ifindex))) 1675 hashmap_remove(link->bound_by_links, INT_TO_PTR(bound_b [all...] |
H A D | networkd-manager.c | 1309 link = hashmap_get(m->links, INT_TO_PTR(gateways[i].ifindex));
|
/systemd/src/libsystemd/sd-bus/ |
H A D | test-bus-match.c | 68 s->userdata = INT_TO_PTR(value);
|
H A D | test-bus-server.c | 121 return INT_TO_PTR(r);
|
H A D | test-bus-chat.c | 348 return INT_TO_PTR(r); 517 return INT_TO_PTR(r);
|
H A D | test-bus-objects.c | 294 return INT_TO_PTR(r);
|
H A D | busctl.c | 74 #define NAME_IS_ACQUIRED INT_TO_PTR(1) 75 #define NAME_IS_ACTIVATABLE INT_TO_PTR(2)
|
/systemd/src/resolve/ |
H A D | resolved-manager.c | 68 l = hashmap_get(m->links, INT_TO_PTR(ifindex)); 131 l = hashmap_get(m->links, INT_TO_PTR(ifindex)); 1045 l = hashmap_get(m->links, INT_TO_PTR(p->ifindex));
|
H A D | resolved-link-bus.c | 494 link = hashmap_get(m->links, INT_TO_PTR(ifindex));
|
H A D | resolved-link.c | 52 r = hashmap_put(m->links, INT_TO_PTR(ifindex), l); 88 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
|
/systemd/src/core/ |
H A D | cgroup.c | 809 r = hashmap_put(u->manager->cgroup_inotify_wd_unit, INT_TO_PTR(u->cgroup_inotify_wd), u); 1041 (void) hashmap_remove(u->manager->cgroup_inotify_wd_unit, INT_TO_PTR(u->cgroup_inotify_wd)); 1234 u = hashmap_get(m->cgroup_inotify_wd_unit, INT_TO_PTR(e->wd));
|
H A D | load-fragment.c | 2552 r = set_put(c->syscall_filter, INT_TO_PTR(id + 1)); 2579 r = set_put(c->syscall_filter, INT_TO_PTR(id + 1)); 2585 set_remove(c->syscall_filter, INT_TO_PTR(id + 1)); 2745 r = set_put(c->address_families, INT_TO_PTR(af)); 2751 set_remove(c->address_families, INT_TO_PTR(af)); 3313 r = set_put(*set, INT_TO_PTR(val));
|
/systemd/src/login/ |
H A D | pam_systemd.c | 481 r = pam_set_data(handle, "systemd.existing", INT_TO_PTR(!!existing), NULL);
|
/systemd/src/journal/ |
H A D | sd-journal.c | 103 k = hashmap_put(j->errors, INT_TO_PTR(r), copy); 1427 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0) 1511 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0) 1545 hashmap_remove(j->directories_by_wd, INT_TO_PTR(d->wd)); 2163 d = hashmap_get(j->directories_by_wd, INT_TO_PTR(e->wd));
|