/
githubmirror
/
shim
Обзор
Документация
Войти
/
githubmirror
/
shim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
include/time.h
25 строк
743 B
Peter Jones
shim: periodically update the firmware watchdog
10 июл 2026, 17:55
10 июл 2026, 17:55
58843bc
Код
Авторство
О чём код?
// SPDX-License-Identifier: BSD-2-Clause-Patent /* * time.h - timekeeping things * Copyright Peter Jones <pjones@redhat.com> */ #pragma once /* * If we're building unit tests, then all of the structs for time will come * from glibc, and all of these helpers are in libefivar. */ #ifndef SHIM_UNIT_TEST #include "Cryptlib/Include/CrtLibTime.h" extern int efi_time_to_tm(const EFI_TIME * const s, struct tm *d); extern int tm_to_efi_time(const struct tm *const s, EFI_TIME *d, bool tzadj); extern EFI_TIME *efi_gmtime_r(const time_t *time, EFI_TIME *result); extern EFI_TIME *efi_gmtime(const time_t *time); extern time_t efi_mktime(const EFI_TIME * const time); #endif extern void update_watchdog(void); // vim:fenc=utf-8:tw=75:noet