Searched refs:USEC_PER_DAY (Results 1 – 10 of 10) sorted by relevance
/systemd-251/src/shared/ |
D | user-record-nss.c | 113 … spwd && spwd->sp_expire > 1 && (uint64_t) spwd->sp_expire < (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 114 spwd->sp_expire * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() 121 … spwd && spwd->sp_lstchg > 0 && (uint64_t) spwd->sp_lstchg <= (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 122 spwd->sp_lstchg * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() 125 spwd && spwd->sp_min > 0 && (uint64_t) spwd->sp_min <= (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 126 spwd->sp_min * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() 129 spwd && spwd->sp_max > 0 && (uint64_t) spwd->sp_max <= (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 130 spwd->sp_max * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() 133 … spwd && spwd->sp_warn > 0 && (uint64_t) spwd->sp_warn <= (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 134 spwd->sp_warn * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() [all …]
|
/systemd-251/src/test/ |
D | test-time-util.c | 355 assert_se(y > x ? y - x : x - y <= USEC_PER_MONTH + USEC_PER_DAY); in TEST() 406 x = now(CLOCK_REALTIME) - (1*USEC_PER_MONTH + 1*USEC_PER_DAY); in TEST() 411 x = now(CLOCK_REALTIME) - (1*USEC_PER_MONTH + 2*USEC_PER_DAY); in TEST() 416 x = now(CLOCK_REALTIME) - (2*USEC_PER_MONTH + 1*USEC_PER_DAY); in TEST() 421 x = now(CLOCK_REALTIME) - (2*USEC_PER_MONTH + 2*USEC_PER_DAY); in TEST() 427 x = now(CLOCK_REALTIME) - (1*USEC_PER_WEEK + 1*USEC_PER_DAY); in TEST() 432 x = now(CLOCK_REALTIME) - (1*USEC_PER_WEEK + 2*USEC_PER_DAY); in TEST() 437 x = now(CLOCK_REALTIME) - (2*USEC_PER_WEEK + 1*USEC_PER_DAY); in TEST() 442 x = now(CLOCK_REALTIME) - (2*USEC_PER_WEEK + 2*USEC_PER_DAY); in TEST() 576 assert_se(nowr < USEC_INFINITY - USEC_PER_DAY*7); /* overflow check */ in TEST() [all …]
|
/systemd-251/src/nss-systemd/ |
D | userdb-glue.c | 159 (long int) (hr->last_password_change_usec / USEC_PER_DAY), in nss_pack_user_record_shadow() 160 …word_change_min_usec != UINT64_MAX ? (long int) (hr->password_change_min_usec / USEC_PER_DAY) : -1, in nss_pack_user_record_shadow() 161 …word_change_max_usec != UINT64_MAX ? (long int) (hr->password_change_max_usec / USEC_PER_DAY) : -1, in nss_pack_user_record_shadow() 162 …rd_change_warn_usec != UINT64_MAX ? (long int) (hr->password_change_warn_usec / USEC_PER_DAY) : -1, in nss_pack_user_record_shadow() 163 …e_inactive_usec != UINT64_MAX ? (long int) (hr->password_change_inactive_usec / USEC_PER_DAY) : -1, in nss_pack_user_record_shadow() 166 (long int) (hr->not_after_usec / USEC_PER_DAY), in nss_pack_user_record_shadow()
|
/systemd-251/src/basic/ |
D | time-util.c | 447 usec_t days = (d % USEC_PER_MONTH) / USEC_PER_DAY; in format_timestamp_relative() 457 usec_t days = (d % USEC_PER_WEEK) / USEC_PER_DAY; in format_timestamp_relative() 465 } else if (d >= 2*USEC_PER_DAY) in format_timestamp_relative() 466 (void) snprintf(buf, l, USEC_FMT " days %s", d / USEC_PER_DAY, s); in format_timestamp_relative() 469 (d - USEC_PER_DAY) / USEC_PER_HOUR, s); in format_timestamp_relative() 508 { "d", USEC_PER_DAY }, in format_timespan() 980 { "days", USEC_PER_DAY }, in extract_multiplier() 981 { "day", USEC_PER_DAY }, in extract_multiplier() 982 { "d", USEC_PER_DAY }, in extract_multiplier()
|
D | time-util.h | 56 #define USEC_PER_DAY ((usec_t) (24ULL*USEC_PER_HOUR)) macro 58 #define USEC_PER_WEEK ((usec_t) (7ULL*USEC_PER_DAY))
|
/systemd-251/src/systemctl/ |
D | systemctl-sysv-compat.c | 104 *ret += USEC_PER_DAY; in parse_shutdown_time_spec()
|
/systemd-251/src/firstboot/ |
D | firstboot.c | 818 i->sp_lstchg = (long) (now(CLOCK_REALTIME) / USEC_PER_DAY); in write_root_shadow() 832 .sp_lstchg = (long) (now(CLOCK_REALTIME) / USEC_PER_DAY), in write_root_shadow()
|
/systemd-251/src/libsystemd-network/ |
D | sd-dhcp6-lease.c | 13 #define IRT_DEFAULT (1 * USEC_PER_DAY)
|
/systemd-251/src/core/ |
D | main.c | 1569 FORMAT_TIMESPAN(CLOCK_VALID_RANGE_USEC_MAX, USEC_PER_DAY)); in initialize_clock() 1574 FORMAT_TIMESPAN(CLOCK_VALID_RANGE_USEC_MAX, USEC_PER_DAY)); in initialize_clock()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 540 lstchg = (long) (now(CLOCK_REALTIME) / USEC_PER_DAY); in write_temporary_shadow()
|