util-linux/sys-utils
J William Piggott 3c45559264 [PATCH] hwclock: make glibc 2.31 compatible
______________________________________________________
GNU C Library NEWS -- history of user-visible changes.
Version 2.31
Deprecated and removed features, and other changes affecting compatibility:

* The settimeofday function can still be used to set a system-wide time
  zone when the operating system supports it.  This is because the Linux
  kernel reused the API, on some architectures, to describe a system-wide
  time-zone-like offset between the software clock maintained by the kernel,
  and the "RTC" clock that keeps time when the system is shut down.

  However, to reduce the odds of this offset being set by accident,
  settimeofday can no longer be used to set the time and the offset
  simultaneously.  If both of its two arguments are non-null, the call
  will fail (setting errno to EINVAL).

  Callers attempting to set this offset should also be prepared for the call
  to fail and set errno to ENOSYS; this already happens on the Hurd and on
  some Linux architectures.  The Linux kernel maintainers are discussing a
  more principled replacement for the reused API.  After a replacement
  becomes available, we will change settimeofday to fail with ENOSYS on all
  platforms when its 'tzp' argument is not a null pointer.

  settimeofday itself is obsolescent according to POSIX.  Programs that set
  the system time should use clock_settime and/or the adjtime family of
  functions instead.  We may cease to make settimeofday available to newly
  linked binaries after there is a replacement for Linux's time-zone-like
  offset API.
______________________________________________________

hwclock(8) had one settimeofday(2) call where both args were set for
--hctosys when the RTC was ticking UTC. This allowed setting the system
time, timezone, and locking the warp_clock function with a single call.
That operation now takes 3 calls of settimeofday(2).

Although this common operation now takes three calls, the overall logic
for the set_system_clock() function was simplified.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: J William Piggott <elseifthen@gmx.com>

Gbp-Pq: Name hwclock-make-glibc-2.31-compatible.patch
2022-05-14 03:14:50 +08:00
..
Makemodule.am Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
adjtime_config.5 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
blkdiscard.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
blkdiscard.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
blkzone.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
blkzone.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
chcpu.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
chcpu.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
chmem.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
chmem.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
choom.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
choom.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ctrlaltdel.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ctrlaltdel.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
dmesg.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
dmesg.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
eject.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
eject.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fallocate.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fallocate.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
flock.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
flock.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fsfreeze.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fsfreeze.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fstab.5 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fstrim.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fstrim.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
fstrim.service.in fstrim shouldn't run inside a container 2022-05-14 03:14:50 +08:00
fstrim.timer fstrim shouldn't run inside a container 2022-05-14 03:14:50 +08:00
hwclock-cmos.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
hwclock-rtc.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
hwclock.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
hwclock.8.in Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
hwclock.c [PATCH] hwclock: make glibc 2.31 compatible 2022-05-14 03:14:50 +08:00
hwclock.h Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcmk.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcmk.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcrm.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcrm.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcs.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcs.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcutils.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ipcutils.h Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ldattach.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
ldattach.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
losetup.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
losetup.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lscpu-arm.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lscpu-dmi.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lscpu.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lscpu.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lscpu.h Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsipc.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsipc.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsmem.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsmem.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsns.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
lsns.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
mount.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
mount.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
mountpoint.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
mountpoint.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
nsenter.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
nsenter.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
pivot_root.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
pivot_root.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
prlimit.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
prlimit.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
readprofile.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
readprofile.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
renice.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
renice.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
rfkill.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
rfkill.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
rtcwake.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
rtcwake.8.in Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
rtcwake.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setarch.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setarch.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setpriv.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setpriv.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setsid.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
setsid.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapoff.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapoff.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapon-common.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapon-common.h Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapon.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
swapon.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
switch_root.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
switch_root.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
tunelp.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
tunelp.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
umount.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
umount.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
unshare.1 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
unshare.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
wdctl.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
wdctl.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
zramctl.8 Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
zramctl.c Import Upstream version 2.34 2022-05-14 03:14:32 +08:00