coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] uptime: Simplify following gnulib changes


From: Bruno Haible
Subject: [PATCH] uptime: Simplify following gnulib changes
Date: Sat, 12 Aug 2023 23:19:04 +0200

Hi,

The Gnulib module 'readutmp' has changed a lot recently: It can now
determine the boot time appropriately on all kinds of platforms,
including OpenBSD, Android, Minix, Haiku, and Windows.

By the fact that the same code for determination of the boot time
is used by the program invocations "who -a" and "update", these
have become more consistent. (I'll submit a NEWS entry about this soon.)

In particular:
  * There is no need any more to exclude building 'uptime' on some
    platforms.
  * Code for specific platforms, that is in src/uptime.c but not in
    src/who.c, is no longer needed.

Here is a proposed patch for simplification.

Tested on:
  - glibc,
  - the platforms with sysctl KERN_BOOTTIME (macOS 12.5, FreeBSD 13.2,
    NetBSD 9.3, OpenBSD 7.2, Minix 3.3),
  - the platforms with <OS.h> (Haiku r1beta4).

Attachment: 0001-uptime-Simplify-following-gnulib-changes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]