aboutsummaryrefslogtreecommitdiffstats
path: root/lib/boot-time.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix the build with mingw.org's MinGWEli Zaretskii2024-06-041-1/+0
| | | | | | | The change in boot-time.c imported from Gnulib broke the MinGW build using mingw.org's MinGW. It is wrong to include sysinfoapi.h, MS documentation says to include <windows.h>. * lib/boot-time.c: Don't include sysinfoapi.h.
* Update from Gnulib by running admin/merge-gnulibPaul Eggert2024-06-031-0/+11
| | | | | * lib/endian.c, lib/endian.in.h, m4/endian_h.m4, m4/sys_cdefs_h.m4: New files, copied from Gnulib.
* Update from Gnulib by running admin/merge-gnulibPaul Eggert2024-01-201-1/+8
|
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Update from GnulibPo Lu2023-08-141-3/+5
| | | | | | | | | * lib/boot-time-aux.h (get_linux_uptime): * lib/boot-time.c (UT_USER): * lib/nproc.c (num_processors_ignoring_omp): * lib/readutmp.h (WTMP_FILE): * m4/readutmp.m4 (gl_READUTMP): * m4/stdint.m4: Update from Gnulib.
* Improve boot-time gatheringPaul Eggert2023-08-121-0/+285
Simplify Emacs proper by using Gnulib’s boot-time module instead of doing it all by hand. This should port Emacs better to obscurish hosts, as Bruno Haible has merged the best of Emacs’s and Gnulib’s boot-time gathering. * lib/boot-time-aux.h, lib/boot-time.c, lib/boot-time.h: * lib/readutmp.h, m4/readutmp.m4: New files, copied from Gnulib. * admin/merge-gnulib (GNULIB_MODULES): Add boot-time. * configure.ac: Do not check for utmp.h; the boot-time module now does this. (BOOT_TIME_FILE): Remove; no longer used. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/filelock.c [__FreeBSD__]: Do not include <sys/sysctl.h>. [HAVE_UTMP_H]: Do not include utmp.h. Include boot-time instead: boot-time does the work now. (BOOT_TIME) [HAVE_ANDROID && !ANDROID_STUBIFY]: Don’t undef. (WTMP_FILE): Don’t define. (boot_time, boot_time_initialized, get_boot_time_1, get_boot_time): Remove. (get_boot_sec): New function that simply calls Gnulib get_boot_time. (lock_file_1, current_lock_owner): Use get_boot_sec instead of get_boot_time.