Re: Native windows boot-time

2024-05-24 Thread Collin Funk
a/ChangeLog b/ChangeLog index 31fd396b43..0a6def457d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2024-05-24 Collin Funk + readutmp: Fix dependencies. + * modules/readutmp (Depends-on): Add gettimeofday. + boot-time, readutmp: Add a Native Windows boot time fallback. * lib/bo

Re: Native windows boot-time

2024-05-24 Thread Bruno Haible
Collin Funk wrote: > I've fixed those in the attached patch and pushed it. Thanks. readutmp now needs a module dependency on gettimetoday, right? Bruno

Re: Native windows boot-time

2024-05-24 Thread Collin Funk
c2435dc1fc80c3740204c59c1c7b6d9adbe54d3 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 24 May 2024 19:23:25 -0700 Subject: [PATCH] boot-time, readutmp: Add a Native Windows boot time fallback. * lib/boot-time-aux.h (initialize, get_windows_boot_time_fallback): New functions. * lib/boot-tim

Re: Native windows boot-time

2024-05-24 Thread Bruno Haible
Hi Collin, > I wrote this patch just now. Any thoughts? - In line 393 the #endif is misindented. - The readutmp module is a second user of boot-time-aux.h. It should also make a call to get_windows_boot_time_fallback. Other than that, it's OK to push. > I've only tested it with a mingw compil

Re: Native windows boot-time

2024-05-24 Thread Collin Funk
Hi Bruno, On 5/24/24 4:44 AM, Bruno Haible wrote: > The longer the API is available, the better. Gnulib supports > Windows XP as the minimum. For modules used by Emacs ('boot-time' in > particular) it should run even on Windows 2000. > > Which means that the code needs to fetch a pointer to the p

Re: Native windows boot-time

2024-05-24 Thread Collin Funk
Hi Bruno, On 5/24/24 4:44 AM, Bruno Haible wrote: >> Does the get_windows_boot_time () not work on Native Windows? The >> Mingw and MSVC actions fail it. > > There's apparently a difference between a full installation of > Windows 10 and the image that they use in the Microsoft Azure cloud. Ah,

Re: Native windows boot-time

2024-05-24 Thread Bruno Haible
Hi Collin, > Does the get_windows_boot_time () not work on Native Windows? The > Mingw and MSVC actions fail it. There's apparently a difference between a full installation of Windows 10 and the image that they use in the Microsoft Azure cloud. > I'm thinking that it could be implemented using G

Native windows boot-time

2024-05-23 Thread Collin Funk
Hi Bruno, Does the get_windows_boot_time () not work on Native Windows? The Mingw and MSVC actions fail it. I'm thinking that it could be implemented using GetTickCount64 (). The Windows documentation says [1]: Retrieves the number of milliseconds that have elapsed since the system was s