Re: readutmp, boot-time: Use the BSD sysctl as fallback

2023-08-13 Thread Bruno Haible
Pádraig Brady wrote: > I notice coreutils CI now failing with: > >In file included from lib/readutmp.c:47: >/usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: >#warning "The header is deprecated and will be removed." > [-Werror=cpp] > 21 | #warning "The header is deprecated

Re: readutmp, boot-time: Use the BSD sysctl as fallback

2023-08-13 Thread Pádraig Brady
On 12/08/2023 14:22, Bruno Haible wrote: The best approaches to get the boot time access some files. For the case of programs that execute in Docker containers on Linux, we have the fallback that relies on the kernel's uptime counter — although it produces wrong values in a VM that has been put t

readutmp, boot-time: Use the BSD sysctl as fallback

2023-08-12 Thread Bruno Haible
robably the same thing on macOS (but I can't test it). - On Minix 3.3, the result of this system call is garbage. When I compile the attached program, it produces completely different results when invoked as $ ./a.out vs. $ TZ=UTC ./a.out 2023-08-12 Bruno