Searched refs:USEC_INFINITY (Results 1 - 25 of 51) sorted by relevance

123

/systemd/src/test/
H A Dtest-time.c45 assert_se(u == USEC_INFINITY);
47 assert_se(u == USEC_INFINITY);
160 test_format_timespan_one(USEC_INFINITY, accuracy);
184 assert_se(usec_add(USEC_INFINITY, 5) == USEC_INFINITY);
185 assert_se(usec_add(5, USEC_INFINITY) == USEC_INFINITY);
186 assert_se(usec_add(USEC_INFINITY-5, 2) == USEC_INFINITY-3);
187 assert_se(usec_add(USEC_INFINITY
[all...]
H A Dtest-conf-files.c42 assert_se(touch_file(path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID) == 0);
/systemd/src/basic/
H A Dtime-util.h42 #define USEC_INFINITY ((usec_t) -1) macro
83 return ((ts->realtime > 0 && ts->realtime != USEC_INFINITY) ||
84 (ts->monotonic > 0 && ts->monotonic != USEC_INFINITY));
130 /* Adds two time values, and makes sure USEC_INFINITY as input results as USEC_INFINITY in output, and doesn't
135 return USEC_INFINITY;
144 if (timestamp == USEC_INFINITY) /* Make sure infinity doesn't degrade */
145 return USEC_INFINITY;
H A Dio-util.c93 (void) fd_wait_for_event(fd, POLLIN, USEC_INFINITY);
147 (void) fd_wait_for_event(fd, POLLOUT, USEC_INFINITY);
194 r = ppoll(&pollfd, 1, t == USEC_INFINITY ? NULL : timespec_store(&ts, t), NULL);
H A Dtime-util.c74 if (u == USEC_INFINITY || u <= 0) {
91 if (u == USEC_INFINITY) {
92 ts->realtime = ts->monotonic = USEC_INFINITY;
106 if (u == USEC_INFINITY) {
107 ts->realtime = ts->monotonic = USEC_INFINITY;
124 return USEC_INFINITY;
127 return USEC_INFINITY;
149 if (u == USEC_INFINITY) {
166 return USEC_INFINITY;
169 return USEC_INFINITY;
[all...]
H A Drlimit-util.c119 if (t == USEC_INFINITY) {
147 if (t == USEC_INFINITY) {
H A Dterminal-util.c102 if (t != USEC_INFINITY) {
124 if (t != USEC_INFINITY) {
169 r = read_one_char(stdin, &c, USEC_INFINITY, &need_nl);
385 if (timeout != USEC_INFINITY)
389 notify = inotify_init1(IN_CLOEXEC | (timeout != USEC_INFINITY ? IN_NONBLOCK : 0));
452 if (timeout != USEC_INFINITY) {
624 fd = acquire_terminal("/dev/console", false, true, true, USEC_INFINITY);
H A Dfs-util.c359 if (stamp != USEC_INFINITY) {
374 return touch_file(path, false, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID);
/systemd/src/shared/
H A Dwatchdog.c33 static usec_t watchdog_timeout = USEC_INFINITY;
41 if (watchdog_timeout == USEC_INFINITY)
105 if (watchdog_fd < 0 && watchdog_timeout == USEC_INFINITY)
H A Dspawn-polkit-agent.c69 fd_wait_for_event(pipe_fd[0], POLLHUP, USEC_INFINITY);
/systemd/src/nspawn/
H A Dnspawn-stub-pid1.c40 usec_t quit_usec = USEC_INFINITY;
122 if (quit_usec == USEC_INFINITY)
/systemd/src/journal/
H A Djournald.c64 usec_t t = USEC_INFINITY, n;
H A Djournal-vacuum.c92 if (x > 0 && x != USEC_INFINITY && x < *realtime)
96 if (x > 0 && x != USEC_INFINITY && x < *realtime)
100 if (x > 0 && x != USEC_INFINITY && x < *realtime)
/systemd/src/resolve/
H A Dresolved-etc-hosts.c64 m->etc_hosts_mtime = USEC_INFINITY;
263 if (m->etc_hosts_last != USEC_INFINITY && m->etc_hosts_last + ETC_HOSTS_RECHECK_USEC > ts)
268 if (m->etc_hosts_mtime != USEC_INFINITY) {
/systemd/src/core/
H A Djob.c933 if (j->unit->job_timeout == USEC_INFINITY)
1118 if (j->begin_usec == 0 || j->unit->job_timeout == USEC_INFINITY)
1167 usec_t x = USEC_INFINITY, y = USEC_INFINITY;
1185 if (x == USEC_INFINITY && y == USEC_INFINITY)
H A Dscope.c80 if (usec == USEC_INFINITY)
357 if (t == USEC_INFINITY)
H A Dtimer.c54 t->next_elapse_monotonic_or_boottime = USEC_INFINITY;
55 t->next_elapse_realtime = USEC_INFINITY;
341 if (*v == USEC_INFINITY)
347 *v = (usec_t) -2; /* Highest possible value, that is not USEC_INFINITY */
628 touch_file(t->stamp_path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID);
H A Dcgroup.c46 c->cpu_quota_per_sec_usec = USEC_INFINITY;
336 if (c->cpu_quota_per_sec_usec != USEC_INFINITY) {
506 c->cpu_quota_per_sec_usec != USEC_INFINITY)
H A Dbusname.c126 if (usec == USEC_INFINITY)
986 if (t == USEC_INFINITY)
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c438 e->realtime.next = e->boottime.next = e->monotonic.next = e->realtime_alarm.next = e->boottime_alarm.next = USEC_INFINITY;
441 e->perturb = USEC_INFINITY;
1012 if (_likely_(e->perturb != USEC_INFINITY))
1889 if (a >= USEC_INFINITY)
1890 return USEC_INFINITY;
1980 if (!a || a->enabled == SD_EVENT_OFF || a->time.next == USEC_INFINITY) {
1985 if (d->next == USEC_INFINITY)
1993 d->next = USEC_INFINITY;
2061 *next = USEC_INFINITY;
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-benchmark.c53 assert_se(sd_bus_wait(b, USEC_INFINITY) >= 0);
/systemd/src/rfkill/
H A Drfkill.c141 r = fd_wait_for_event(watch_fd, POLLIN, USEC_INFINITY);
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c592 if (u <= 0 || u >= USEC_INFINITY) {
/systemd/src/tty-ask-password-agent/
H A Dtty-ask-password-agent.c358 tty_fd = acquire_terminal("/dev/console", false, false, false, USEC_INFINITY);
/systemd/src/network/
H A Dnetworkd-route.c42 route->lifetime = USEC_INFINITY;
525 if (route->lifetime != USEC_INFINITY) {

Completed in 130 milliseconds

123