Searched defs:sec (Results 1 - 8 of 8) sorted by relevance

/systemd/src/shared/
H A Dwatchdog.c51 int sec, flags; local
54 sec = (int) ((watchdog_timeout + USEC_PER_SEC - 1) / USEC_PER_SEC);
55 r = ioctl(watchdog_fd, WDIOC_SETTIMEOUT, &sec);
57 return log_warning_errno(errno, "Failed to set timeout to %is: %m", sec);
59 watchdog_timeout = (usec_t) sec * USEC_PER_SEC;
/systemd/src/timedate/
H A Dtimedatectl.c85 time_t sec; local
104 sec = (time_t) (i->time / USEC_PER_SEC);
107 sec = time(NULL);
113 xstrftime(a, "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm));
116 xstrftime(a, "%a %Y-%m-%d %H:%M:%S UTC", gmtime_r(&sec, &tm));
133 xstrftime(a, "%Z, %z", localtime_r(&sec, &tm));
/systemd/src/basic/
H A Dbtrfs-ctree.h9 le64_t sec; member in struct:btrfs_timespec
H A Dtime-util.c193 time_t sec; local
202 sec = (time_t) (t / USEC_PER_SEC);
203 localtime_or_gmtime_r(&sec, &tm, utc);
684 { "sec", USEC_PER_SEC },
816 { "sec", NSEC_PER_SEC },
/systemd/src/libsystemd-network/
H A Dsd-ipv4acd.c187 static int ipv4acd_set_next_wakeup(sd_ipv4acd *ll, int sec, int random_sec) { argument
193 assert(sec >= 0);
197 next_timeout = sec * USEC_PER_SEC;
/systemd/src/boot/efi/
H A Dboot.c609 status = PoolPrint(L"Boot in %d sec.", (timeout_remain + 5) / 10);
742 status = PoolPrint(L"Menu timeout set to %d sec.", config->timeout_sec_efivar);
749 status = PoolPrint(L"Menu timeout of %d sec is defined by configuration file.",
763 status = PoolPrint(L"Menu timeout set to %d sec.",
1138 UINTN sec; local
1147 err = efivar_get_int(L"LoaderConfigTimeout", &sec);
1149 config->timeout_sec_efivar = sec;
1150 config->timeout_sec = sec;
/systemd/src/resolve/
H A Dresolved-dns-rr.c736 static int format_timestamp_dns(char *buf, size_t l, time_t sec) { argument
742 if (!gmtime_r(&sec, &tm))
1495 /* Mnemonics as listed on https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml */
/systemd/src/timesync/
H A Dtimesyncd-manager.c102 be32_t sec; member in struct:ntp_ts
107 be16_t sec; member in struct:ntp_ts_short
131 return be16toh(ts->sec) + (be16toh(ts->frac) / 65536.0);
135 return be32toh(ts->sec) + ((double)be32toh(ts->frac) / UINT_MAX);
191 ntpmsg.trans_time.sec = htobe32(m->trans_time.tv_sec + OFFSET_1900_1970);
331 log_debug(" adjust (slew): %+.3f sec", offset);
346 log_debug(" adjust (jump): %+.3f sec", offset);
381 " offset : %+.3f sec\n"
558 if (be32toh(ntpmsg.origin_time.sec) != m->trans_time.tv_sec + OFFSET_1900_1970 ||
566 if (be32toh(ntpmsg.recv_time.sec) < TIME_EPOC
[all...]

Completed in 54 milliseconds