The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"Для избавления Glibc от проблемы 2038 года предложено прекратить использование utmp"
Версия для распечатки Пред. тема | След. тема
Форум Разговоры, обсуждение новостей
Исходное сообщение [ Отслеживать ]
Присылайте удачные настройки в раздел примеров файлов конфигурации на WIKI.opennet.ru.
. "Для избавления Glibc от проблемы 2038 года предложено прекра..." +1 +/
Сообщение от crypt (ok), 06-Мрт-23, 12:56 
было приятно узнать, что FreeBSD лишена проблемы by design.

FreeBSD and macOS both support utmpx only, not traditional utmp. But they do support 64-bit timestamps at least on 64-bit architectures, because the ut_tv field of struct utmpx is a struct timeval, which on these systems uses 64-bit or 32-bit timestamps depending on the architecture. FreeBSD has a semi-traditional implementation of getutxent that reads a file, but the on-disk format is a separate struct that their libc manually converts to struct utmpx, so it doesn't matter that struct utmpx is different between 32-bit and 64-bit programs. (This is in contrast to glibc where struct utmp, struct utmpx, and the on-disk format are all identical.)

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
Для избавления Glibc от проблемы 2038 года предложено прекратить использование utmp, opennews, 06-Мрт-23, 10:35  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру