/systemd-251/src/test/ |
D | test-time-util.c | 272 TEST(usec_add) { in TEST() argument 273 assert_se(usec_add(0, 0) == 0); in TEST() 274 assert_se(usec_add(1, 4) == 5); in TEST() 275 assert_se(usec_add(USEC_INFINITY, 5) == USEC_INFINITY); in TEST() 276 assert_se(usec_add(5, USEC_INFINITY) == USEC_INFINITY); in TEST() 277 assert_se(usec_add(USEC_INFINITY-5, 2) == USEC_INFINITY-3); in TEST() 278 assert_se(usec_add(USEC_INFINITY-2, 2) == USEC_INFINITY); in TEST() 279 assert_se(usec_add(USEC_INFINITY-1, 2) == USEC_INFINITY); in TEST() 280 assert_se(usec_add(USEC_INFINITY, 2) == USEC_INFINITY); in TEST()
|
D | test-loop-block.c | 282 end = usec_add(now(CLOCK_MONOTONIC), arg_timeout); in run()
|
/systemd-251/src/network/ |
D | test-networkd-address.c | 20 test_FORMAT_LIFETIME_one(usec_add(now_usec, 2 * USEC_PER_SEC - 1), "for 1s"); in TEST() 21 … test_FORMAT_LIFETIME_one(usec_add(now_usec, 3 * USEC_PER_WEEK + USEC_PER_SEC - 1), "for 3w"); in TEST()
|
D | networkd-ndisc.c | 323 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_default() 451 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in ndisc_router_process_autonomous_prefix() 452 lifetime_preferred_usec = usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec); in ndisc_router_process_autonomous_prefix() 528 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_onlink_prefix() 669 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_route() 723 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_rdnss() 817 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_dnssl()
|
D | networkd-dhcp-prefix-delegation.c | 889 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_assign_subnet_prefix() 961 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_prefix_acquired() 1071 … lifetime_preferred_usec = usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_assign_subnet_prefixes() 1072 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_assign_subnet_prefixes() 1118 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_prefix_acquired()
|
D | networkd-dhcp6.c | 274 … usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec), in dhcp6_address_acquired() 275 … usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec)); in dhcp6_address_acquired()
|
/systemd-251/src/shared/ |
D | killall.c | 115 until = usec_add(n, timeout); in wait_for_children() 116 date_log_child = usec_add(n, 10u * USEC_PER_SEC); in wait_for_children() 118 date_log_child = usec_add(n, timeout / 2u); in wait_for_children()
|
D | clock-util.c | 156 else if (now_usec > usec_add(epoch_usec, CLOCK_VALID_RANGE_USEC_MAX)) in clock_apply_epoch()
|
D | nscd-flush.c | 139 end = usec_add(now(CLOCK_MONOTONIC), NSCD_FLUSH_CACHE_TIMEOUT_USEC); in nscd_flush_cache()
|
/systemd-251/src/core/ |
D | scope.c | 65 return usec_add(usec_add(UNIT(s)->active_enter_timestamp.monotonic, in scope_running_timeout() 232 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_stop_usec); in scope_coldplug_timeout() 338 r = scope_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_stop_usec)); in scope_enter_signal()
|
D | service.c | 219 …r = sd_event_source_set_time(s->watchdog_event_source, usec_add(s->watchdog_timestamp.monotonic, w… in service_start_watchdog() 231 usec_add(s->watchdog_timestamp.monotonic, watchdog_usec), 0, in service_start_watchdog() 287 extended = usec_add(now(CLOCK_MONOTONIC), extend_timeout_usec); in service_extend_timeout() 529 return usec_add(usec_add(UNIT(s)->active_enter_timestamp.monotonic, in service_running_timeout() 1161 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_start_usec); in service_coldplug_timeout() 1172 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_stop_usec); in service_coldplug_timeout() 1176 … return usec_add(UNIT(s)->state_change_timestamp.monotonic, service_timeout_abort_usec(s)); in service_coldplug_timeout() 1179 return usec_add(UNIT(s)->inactive_enter_timestamp.monotonic, s->restart_usec); in service_coldplug_timeout() 1182 … return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->exec_context.timeout_clean_usec); in service_coldplug_timeout() 1542 r = service_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), timeout)); in service_spawn_internal() [all …]
|
D | job.c | 1062 timeout_time = usec_add(j->begin_running_usec, j->unit->job_running_timeout); in job_start_timer() 1084 timeout_time = usec_add(j->begin_usec, j->unit->job_timeout); in job_start_timer() 1287 timeout_time = usec_add(j->begin_usec, j->unit->job_timeout); in job_coldplug() 1290 … timeout_time = MIN(timeout_time, usec_add(j->begin_running_usec, j->unit->job_running_timeout)); in job_coldplug()
|
D | swap.c | 595 … r = swap_arm_timer(s, usec_add(u->state_change_timestamp.monotonic, s->timeout_usec)); in swap_coldplug() 683 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in swap_spawn() 785 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in swap_enter_signal() 1560 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->exec_context.timeout_clean_usec)); in swap_clean()
|
D | mount.c | 754 … r = mount_arm_timer(m, usec_add(u->state_change_timestamp.monotonic, m->timeout_usec)); in mount_coldplug() 841 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->timeout_usec)); in mount_spawn() 950 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->timeout_usec)); in mount_enter_signal() 2140 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->exec_context.timeout_clean_usec)); in mount_clean()
|
D | socket.c | 1875 … r = socket_arm_timer(s, usec_add(u->state_change_timestamp.monotonic, s->timeout_usec)); in socket_coldplug() 1939 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_spawn() 1970 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_chown() 2120 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_enter_signal() 3368 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->exec_context.timeout_clean_usec)); in socket_clean()
|
/systemd-251/src/basic/ |
D | time-util.h | 172 static inline usec_t usec_add(usec_t a, usec_t b) { in usec_add() function 193 return usec_add(timestamp, (usec_t) (-delta)); in usec_sub_signed()
|
/systemd-251/src/userdb/ |
D | userwork.c | 516 if (n >= usec_add(start_time, RUNTIME_MAX_USEC)) { in run() 524 … else if (listen_idle_usec != USEC_INFINITY && n >= usec_add(last_busy_usec, listen_idle_usec)) { in run() 543 if (now(CLOCK_MONOTONIC) <= usec_add(n, PRESSURE_SLEEP_TIME_USEC)) { in run()
|
/systemd-251/src/cgtop/ |
D | cgtop.c | 956 if (t >= usec_add(last_refresh, arg_delay) || immediate_refresh) { in run() 979 (void) usleep(usec_add(usec_sub_unsigned(last_refresh, t), arg_delay)); in run() 981 … r = read_one_char(stdin, &key, usec_add(usec_sub_unsigned(last_refresh, t), arg_delay), NULL); in run() 1056 … arg_delay = usec_add(arg_delay, arg_delay < USEC_PER_SEC ? USEC_PER_MSEC * 250 : USEC_PER_SEC); in run()
|
/systemd-251/src/libsystemd/sd-event/ |
D | event-util.c | 109 …return event_reset_time(e, s, clock, usec_add(usec_now, usec), accuracy, callback, userdata, prior… in event_reset_time_relative()
|
D | sd-event.c | 233 return usec_add(s->rate_limit.begin, s->rate_limit.interval); in time_event_source_next() 251 return usec_add(s->rate_limit.begin, s->rate_limit.interval); in time_event_source_latest() 256 return usec_add(s->time.next, s->time.accuracy); in time_event_source_latest() 2660 usec = usec_add(t, usec); in sd_event_source_set_time_relative() 3779 usec_add(e->watchdog_last, (e->watchdog_period / 2)), in arm_watchdog() 3780 usec_add(e->watchdog_last, (e->watchdog_period * 3 / 4))); in arm_watchdog()
|
/systemd-251/src/ask-password/ |
D | ask-password.c | 237 timeout = usec_add(now(CLOCK_MONOTONIC), arg_timeout); in run()
|
/systemd-251/src/login/ |
D | logind-user.c | 682 now(CLOCK_MONOTONIC) < usec_add(u->last_session_timestamp, user_stop_delay)) in user_may_gc() 862 usec_add(u->last_session_timestamp, user_stop_delay), 0, in user_update_last_session_timer()
|
/systemd-251/src/udev/ |
D | udevadm-lock.c | 352 deadline = usec_add(now(CLOCK_MONOTONIC), arg_timeout_usec); in lock_main()
|
D | udevd.c | 1018 usec > usec_add(manager->last_usec, 3 * USEC_PER_SEC)) { in event_queue_start() 1091 event->retry_again_next_usec = usec_add(now_usec, EVENT_RETRY_INTERVAL_USEC); in event_requeue() 1093 event->retry_again_timeout_usec = usec_add(now_usec, EVENT_RETRY_TIMEOUT_USEC); in event_requeue()
|
/systemd-251/src/libsystemd-network/ |
D | sd-lldp-tx.c | 529 return usec_add(lldp_tx->fast_tx > 0 ? LLDP_FAST_TX_INTERVAL_USEC : LLDP_TX_INTERVAL_USEC, in lldp_tx_get_delay()
|