Re: [util-linux PATCH] Support hwclock for GNU Hurd

2024-12-05 Thread Zhaoming Luo
On 12/5/24 9:53 PM, Sergey Bugaev wrote: On Thu, Dec 5, 2024 at 3:39 PM Zhaoming Luo wrote: - rtc_dev_fd = open(rtc_dev_name, O_RDONLY); + rtc_dev_fd = open(rtc_dev_name, O_RDONLY | O_WRONLY); It's called "xxx-only" for a reason :) On standard Unix, you should use

[util-linux PATCH v2] Support hwclock for GNU Hurd

2024-12-05 Thread Zhaoming Luo
* configure.ac: add HURD so it can be used in conditional in am files * sys-utils/Makemodule.am: compile hwclock for GNU Hurd * sys-utils/hwclock-cmos.c: avoid nested declaration warning * sys-utils/hwclock-rtc.c: compile for GNU Hurd * sys-utils/hwclock.c: compile for GNU Hurd * sys-utils/hwclock.

Re: [util-linux PATCH] Support hwclock for GNU Hurd

2024-12-05 Thread Sergey Bugaev
On Thu, Dec 5, 2024 at 3:39 PM Zhaoming Luo wrote: > - rtc_dev_fd = open(rtc_dev_name, O_RDONLY); > + rtc_dev_fd = open(rtc_dev_name, O_RDONLY | O_WRONLY); It's called "xxx-only" for a reason :) On standard Unix, you should use O_RDWR for this. Now, on the Hurd, these

[util-linux PATCH] Support hwclock for GNU Hurd

2024-12-05 Thread Zhaoming Luo
* configure.ac: add HURD so it can be used in conditional in am files * sys-utils/Makemodule.am: compile hwclock for GNU Hurd * sys-utils/hwclock-cmos.c: avoid nested declaration warning * sys-utils/hwclock-rtc.c: compile for GNU Hurd * sys-utils/hwclock.c: compile for GNU Hurd * sys-utils/hwclock.

[Hurd PATCH 1/1] Add rtc translator and RTC CMOS driver

2024-12-05 Thread Zhaoming Luo
A /hurd/rtc translator will be created as, users can create a /dev/rtc device using the following command: ``` sudo settrans -c /dev/rtc /hurd/rtc ``` * Makefile: add rtc-cmos server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.h: new file. In

[PATCH 0/1] Add rtc translator, RTC CMOS driver and hwclock

2024-12-05 Thread Zhaoming Luo
Because the hurd patch (rtc translator and RTC CMOS driver) is a bit related to the patch for util-linux (support hwclock in Hurd), I decided to send them together. We will see the following functions after applying the patch: ``` Functions: -r, --show display the RTC time

Re: [PATCH v2 gnumach] fpu: Fix for cpus that have no fxsave instruction

2024-12-05 Thread Samuel Thibault
Applied, thanks! Damien Zammit via Bug reports for the GNU Hurd, le jeu. 05 déc. 2024 07:49:41 +, a ecrit: > Fallthrough was incorrectly using fxsave() instead of > xsave() or xsaveopt(). > > TESTED: on AMD fam15h: no longer throws "No coprocessor" exception. > --- > i386/i386/fpu.c | 18 +-