Home
last modified time | relevance | path

Searched refs:USEC_INFINITY (Results 1 – 25 of 129) sorted by relevance

123456

/systemd-251/coccinelle/
Dtimestamp-is-set.cocci4 constant USEC_INFINITY = USEC_INFINITY;
9 - x > 0 && x < USEC_INFINITY
12 - x < USEC_INFINITY && x > 0
15 - x@p > 0 && x != USEC_INFINITY
18 - x != USEC_INFINITY && x > 0
21 - x != 0 && x < USEC_INFINITY
24 - x < USEC_INFINITY && x != 0
27 - x != 0 && x != USEC_INFINITY
30 - x != USEC_INFINITY && x != 0
33 - !IN_SET(x, 0, USEC_INFINITY)
[all …]
/systemd-251/src/test/
Dtest-time-util.c37 assert_se(u == USEC_INFINITY); in TEST()
39 assert_se(u == USEC_INFINITY); in TEST()
79 assert_se(u == USEC_INFINITY); in TEST()
81 assert_se(u == USEC_INFINITY); in TEST()
83 assert_se(u == USEC_INFINITY); in TEST()
92 assert_se(u == USEC_INFINITY); in TEST()
94 assert_se(u == USEC_INFINITY); in TEST()
234 test_format_timespan_one(USEC_INFINITY, accuracy); in test_format_timespan_accuracy()
275 assert_se(usec_add(USEC_INFINITY, 5) == USEC_INFINITY); in TEST()
276 assert_se(usec_add(5, USEC_INFINITY) == USEC_INFINITY); in TEST()
[all …]
Dtest-serialize.c72 assert_se(serialize_usec(f, "usec1", USEC_INFINITY) == 0); in TEST()
74 assert_se(serialize_usec(f, "usec3", USEC_INFINITY-1) == 1); in TEST()
89 assert_se(x == USEC_INFINITY-1); in TEST()
/systemd-251/src/shared/
Dwatchdog.c23 static usec_t watchdog_last_ping = USEC_INFINITY;
171 assert(watchdog_pretimeout != USEC_INFINITY); in watchdog_set_pretimeout()
210 if (watchdog_timeout == USEC_INFINITY || watchdog_pretimeout == USEC_INFINITY) in update_pretimeout()
265 if (watchdog_timeout != USEC_INFINITY) { in update_timeout()
273 watchdog_timeout = USEC_INFINITY; in update_timeout()
277 if (watchdog_timeout == USEC_INFINITY) { in update_timeout()
360 if (watchdog_fd >= 0 && (timeout == watchdog_timeout || timeout == USEC_INFINITY)) in watchdog_setup()
380 if ((watchdog_fd >= 0 && timeout == watchdog_pretimeout) || timeout == USEC_INFINITY) in watchdog_setup_pretimeout()
410 return USEC_INFINITY; in watchdog_runtime_wait()
Dloopback-setup.c95 …r = sd_netlink_call_async(rtnl, NULL, req, generic_handler, NULL, s, USEC_INFINITY, "systemd-loopb… in add_ipv4_address()
130 …r = sd_netlink_call_async(rtnl, NULL, req, generic_handler, NULL, s, USEC_INFINITY, "systemd-loopb… in add_ipv6_address()
147 r = sd_netlink_call(rtnl, req, USEC_INFINITY, &reply); in check_loopback()
Dcreds-util.c523 if (not_after != USEC_INFINITY && timestamp != USEC_INFINITY && not_after < timestamp) in encrypt_credential_and_warn()
531 if (timestamp != USEC_INFINITY) in encrypt_credential_and_warn()
533 if (not_after != USEC_INFINITY) in encrypt_credential_and_warn()
967 if (le64toh(m->timestamp) != USEC_INFINITY && in decrypt_credential_and_warn()
968 le64toh(m->not_after) != USEC_INFINITY && in decrypt_credential_and_warn()
1004 if (validate_timestamp != USEC_INFINITY) { in decrypt_credential_and_warn()
1005 … if (le64toh(m->timestamp) != USEC_INFINITY && le64toh(m->timestamp) > validate_timestamp) in decrypt_credential_and_warn()
1008 … if (le64toh(m->not_after) != USEC_INFINITY && le64toh(m->not_after) < validate_timestamp) { in decrypt_credential_and_warn()
Duser-record-show.c45 if (hr->last_change_usec != USEC_INFINITY) { in user_record_show()
53 if (hr->last_password_change_usec != USEC_INFINITY && in user_record_show()
88 if (y != USEC_INFINITY && y > now(CLOCK_REALTIME)) { in user_record_show()
410 if (t != USEC_INFINITY) { in user_record_show()
520 if (gr->last_change_usec != USEC_INFINITY) in group_record_show()
/systemd-251/src/basic/
Dtime-util.c97 if (to_base >= USEC_INFINITY - delta) /* overflow? */ in map_clock_usec_internal()
98 return USEC_INFINITY; in map_clock_usec_internal()
120 if (from == USEC_INFINITY) in map_clock_usec()
161 if (u == USEC_INFINITY) { in dual_timestamp_from_monotonic()
162 ts->realtime = ts->monotonic = USEC_INFINITY; in dual_timestamp_from_monotonic()
174 if (u == USEC_INFINITY) { in dual_timestamp_from_boottime()
175 ts->realtime = ts->monotonic = USEC_INFINITY; in dual_timestamp_from_boottime()
201 return USEC_INFINITY; in triple_timestamp_by_clock()
209 return USEC_INFINITY; in timespec_load()
212 return USEC_INFINITY; in timespec_load()
[all …]
Dtime-util.h42 #define USEC_INFINITY ((usec_t) UINT64_MAX) macro
97 return timestamp > 0 && timestamp != USEC_INFINITY; in timestamp_is_set()
176 if (a > USEC_INFINITY - b) /* overflow check */ in usec_add()
177 return USEC_INFINITY; in usec_add()
183 if (timestamp == USEC_INFINITY) /* Make sure infinity doesn't degrade */ in usec_sub_unsigned()
184 return USEC_INFINITY; in usec_sub_unsigned()
Dterminal-util.c103 if (t != USEC_INFINITY) { in read_one_char()
125 if (t != USEC_INFINITY && fd > 0) { in read_one_char()
360 usec_t ts = USEC_INFINITY; in acquire_terminal()
376 notify = inotify_init1(IN_CLOEXEC | (timeout != USEC_INFINITY ? IN_NONBLOCK : 0)); in acquire_terminal()
384 if (timeout != USEC_INFINITY) in acquire_terminal()
438 if (timeout != USEC_INFINITY) { in acquire_terminal()
441 assert(ts != USEC_INFINITY); in acquire_terminal()
583 …cquire_terminal("/dev/console", ACQUIRE_TERMINAL_FORCE|ACQUIRE_TERMINAL_PERMISSIVE, USEC_INFINITY); in make_console_stdio()
Dxattr-util.c171 a = USEC_INFINITY; in fd_getcrtime_at()
181 if (a != USEC_INFINITY) { in fd_getcrtime_at()
189 if (a != USEC_INFINITY) in fd_getcrtime_at()
Dio-util.c78 (void) fd_wait_for_event(fd, POLLIN, USEC_INFINITY); in loop_read()
132 (void) fd_wait_for_event(fd, POLLOUT, USEC_INFINITY); in loop_write()
169 r = ppoll(fds, nfds, timeout == USEC_INFINITY ? NULL : TIMESPEC_STORE(timeout), NULL); in ppoll_usec()
/systemd-251/src/network/tc/
Dnetem.c32 if (ne->delay != USEC_INFINITY) { in network_emulator_fill_message()
38 if (ne->jitter != USEC_INFINITY) { in network_emulator_fill_message()
87 ne->delay = USEC_INFINITY; in config_parse_network_emulator_delay()
89 ne->jitter = USEC_INFINITY; in config_parse_network_emulator_delay()
Dcodel.c20 cd->ce_threshold_usec = USEC_INFINITY; in controlled_delay_init()
64 if (cd->ce_threshold_usec != USEC_INFINITY) { in controlled_delay_fill_message()
175 *p = USEC_INFINITY; in config_parse_controlled_delay_usec()
Dfq-codel.c22 fqcd->ce_threshold_usec = USEC_INFINITY; in fair_queueing_controlled_delay_init()
78 if (fqcd->ce_threshold_usec != USEC_INFINITY) { in fair_queueing_controlled_delay_fill_message()
203 *p = USEC_INFINITY; in config_parse_fair_queueing_controlled_delay_usec()
/systemd-251/src/libsystemd-network/
Dtest-ndisc-ra.c118 assert_se(sd_radv_prefix_set_valid_lifetime(p, 300 * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST()
123 assert_se(sd_radv_prefix_set_preferred_lifetime(p, 300 * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST()
171 assert_se(sd_radv_set_router_lifetime(ra, USEC_INFINITY) < 0); in TEST()
315 …ssert_se(sd_radv_prefix_set_valid_lifetime(p, prefix[i].valid * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST()
317 …(sd_radv_prefix_set_preferred_lifetime(p, prefix[i].preferred * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST()
/systemd-251/src/locale/
Dkeymap-util.c113 if (c->locale_mtime != USEC_INFINITY && t == c->locale_mtime) in locale_read_data()
137 c->locale_mtime = USEC_INFINITY; in locale_read_data()
174 c->vc_mtime = USEC_INFINITY; in vconsole_read_data()
181 if (c->vc_mtime != USEC_INFINITY && t == c->vc_mtime) in vconsole_read_data()
212 c->x11_mtime = USEC_INFINITY; in x11_read_data()
219 if (c->x11_mtime != USEC_INFINITY && t == c->x11_mtime) in x11_read_data()
301 c->locale_mtime = USEC_INFINITY; in locale_write_data()
338 c->vc_mtime = USEC_INFINITY; in vconsole_write_data()
366 c->vc_mtime = USEC_INFINITY; in x11_write_data()
/systemd-251/src/network/netdev/
Dbridge.c63 if (b->forward_delay != USEC_INFINITY) { in netdev_bridge_post_create_message()
81 if (b->ageing_time != USEC_INFINITY) { in netdev_bridge_post_create_message()
278 b->forward_delay = USEC_INFINITY; in bridge_init()
279 b->ageing_time = USEC_INFINITY; in bridge_init()
/systemd-251/src/journal/
Djournald-context.c128 .timestamp = USEC_INFINITY, in client_context_new()
147 c->timestamp = USEC_INFINITY; in client_context_reset()
515 if (timestamp == USEC_INFINITY) in client_context_really_refresh()
551 if (timestamp == USEC_INFINITY) in client_context_maybe_refresh()
555 if (c->timestamp == USEC_INFINITY) in client_context_maybe_refresh()
681 client_context_maybe_refresh(s, c, ucred, label, label_len, unit_id, USEC_INFINITY); in client_context_get_internal()
705 client_context_really_refresh(s, c, ucred, label, label_len, unit_id, USEC_INFINITY); in client_context_get_internal()
/systemd-251/src/cryptenroll/
Dcryptenroll-password.c53 …n, "drive-harddisk", id, "cryptenroll", "cryptenroll.new-passphrase", USEC_INFINITY, 0, &passwords… in enroll_password()
64 …n, "drive-harddisk", id, "cryptenroll", "cryptenroll.new-passphrase", USEC_INFINITY, 0, &passwords… in enroll_password()
/systemd-251/src/creds/
Dcreds.c48 static usec_t arg_timestamp = USEC_INFINITY;
49 static usec_t arg_not_after = USEC_INFINITY;
365 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_cat()
481 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_encrypt()
483 if (arg_not_after != USEC_INFINITY && arg_not_after < timestamp) in verb_encrypt()
574 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_decrypt()
/systemd-251/src/userdb/
Duserwork.c461 usec_t start_time, listen_idle_usec, last_busy_usec = USEC_INFINITY; in run()
497 listen_idle_usec = r ? USEC_INFINITY : LISTEN_IDLE_USEC; in run()
522 if (last_busy_usec == USEC_INFINITY) in run()
524 … else if (listen_idle_usec != USEC_INFINITY && n >= usec_add(last_busy_usec, listen_idle_usec)) { in run()
564 last_busy_usec = USEC_INFINITY; in run()
/systemd-251/src/coredump/
Dcoredumpctl.c46 static usec_t arg_since = USEC_INFINITY, arg_until = USEC_INFINITY;
344 if (arg_since != USEC_INFINITY && arg_until != USEC_INFINITY && in parse_argv()
838 if (arg_since != USEC_INFINITY && !arg_reverse) in dump_list()
840 else if (arg_until != USEC_INFINITY && arg_reverse) in dump_list()
859 if (arg_until != USEC_INFINITY && !arg_reverse) { in dump_list()
869 if (arg_since != USEC_INFINITY && arg_reverse) { in dump_list()
/systemd-251/src/resolve/
Dresolved-socket-graveyard.c48 usec_t n = USEC_INFINITY; in manager_socket_graveyard_process()
55 if (n == USEC_INFINITY) in manager_socket_graveyard_process()
/systemd-251/src/login/
Dlogind-user.c65 .last_session_timestamp = USEC_INFINITY, in user_new()
187 if (u->last_session_timestamp != USEC_INFINITY) in user_save_internal()
672 if (u->last_session_timestamp != USEC_INFINITY) { in user_may_gc()
679 if (user_stop_delay == USEC_INFINITY) in user_may_gc()
838 u->last_session_timestamp = USEC_INFINITY; in user_update_last_session_timer()
843 if (u->last_session_timestamp != USEC_INFINITY) in user_update_last_session_timer()

123456