Originally posted by arekm
View Post
Announcement
Collapse
No announcement yet.
GNU Coreutils 9.4 Adds Experimental "--enable-systemd" Option, Faster Split
Collapse
X
-
Originally posted by Vorpal View Post
Now I'm curious as to the the epoch and range of the system RTC (i.e. what keeps time when the system is turned off). Presumably those too will overflow at some point.
At least on PC I expect the protocol between the OS/BIOS/UEFI and the hardware clock to be somewhat standard. Other platforms will likely differ.
- Likes 4
Comment
-
I read the GNU Release Announcement. Then I read 2 more times just to make sure I had not over looked anything.
I see the following bit:
Code:pinky, uptime, users, and who no longer misbehave on 32-bit GNU/Linux platforms like x86 and ARM where time_t was historically 32 bits. Also see the new --enable-systemd option mentioned below. [bug introduced in coreutils-9.0]
Code:On GNU/Linux platforms where utmp-format files have 32-bit timestamps, pinky, uptime, and who can now work for times after the year 2038, so long as systemd is installed, you configure with a new, experimental option --enable-systemd, and you use the programs without file arguments. (For example, with systemd 'who /var/log/wtmp' does not work because systemd does not support the equivalent of /var/log/wtmp.)
- Likes 2
Comment
-
Originally posted by Vorpal View Post
Now I'm curious as to the the epoch and range of the system RTC (i.e. what keeps time when the system is turned off). Presumably those too will overflow at some point.
At least on PC I expect the protocol between the OS/BIOS/UEFI and the hardware clock to be somewhat standard. Other platforms will likely differ.
- Likes 1
Comment
-
Originally posted by arekm View PostDo coreutils binaries have to provided in two variants, systemd and non-systemd (for systems where systemd can be used by is optional; like PLD/Linux) or did they make this in sane and compatible way, so one "binary fits all"?
- Likes 4
Comment
-
Originally posted by PluMGMK View PostWas this ever even an issue in Windows? I thought DOS/Windows had their own threshold dates completely separate from this 2038 one…
Linux used a 32-bit integer well into the 2000s which is honestly psychotic.
- Likes 1
Comment
-
Originally posted by NotMine999 View PostI read the GNU Release Announcement. Then I read 2 more times just to make sure I had not over looked anything.
Ok, so it's documented in a wordy statement. I guess it pays to read the documentation (Release Announcement in this case), but how many of us actually READ IT when we usually just SKIM IT?
But looking at source code and it looks that binaries build with --enable-systemd will work on both worlds (with and without systemd).
Code:int read_utmp (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf, int options) { # if READUTMP_USE_SYSTEMD if (strcmp (file, UTMP_FILE) == 0) /* Imitate reading UTMP_FILE, using systemd and Linux APIs. */ return read_utmp_from_systemd (n_entries, utmp_buf, options); # endif return read_utmp_from_file (file, n_entries, utmp_buf, options); }
- Likes 3
Comment
-
Originally posted by cynic View Post
we're all so good in taking decisions... 20 years later!
Windows NT had a 64-bit timestamp in 1993.
This was not revolutionary, it was actually fairly standard.
If only Linux wasn't trying to poorly mimic a hacked-together OS architecture that was designed on a PDP-11 that even it's own creator disowned.
Comment
-
Originally posted by Ironmask View PostIf only Linux wasn't trying to poorly mimic a hacked-together OS architecture that was designed on a PDP-11 that even it's own creator disowned.
It wasn't designed to last, and surely not to last this long.
He used a design that was working at the time and was enough for his needs.
- Likes 2
Comment
Comment