/
githubmirror
/
glibc
Обзор
Документация
Войти
/
githubmirror
/
glibc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
include/struct___timeval64.h
17 строк
551 B
Lukasz Majewski
y2038: include: Move struct __timeval64 definition to a separate file
05 май 2020, 20:36
05 май 2020, 20:36
a308615
Код
Авторство
О чём код?
#ifndef _STRUCT_TIMEVAL64_H #define _STRUCT_TIMEVAL64_H #if __TIMESIZE == 64 # define __timeval64 timeval #else /* The glibc Y2038-proof struct __timeval64 structure for a time value. This structure is NOT supposed to be passed to the Linux kernel. Instead, it shall be converted to struct __timespec64 and time shall be [sg]et via clock_[sg]ettime (which are now Y2038 safe). */ struct __timeval64 { __time64_t tv_sec; /* Seconds */ __suseconds64_t tv_usec; /* Microseconds */ }; #endif #endif /* _STRUCT_TIMEVAL64_H */