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
* 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.
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
* 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.
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
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
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 +-