Zhaoming Luo, le mar. 03 déc. 2024 08:53:44 +0800, a ecrit: > On 12/3/24 6:48 AM, Samuel Thibault wrote: > > Zhaoming Luo, le mar. 03 déc. 2024 06:42:07 +0800, a ecrit: > > > On 12/2/24 10:12 AM, Samuel Thibault wrote: > > > > Please factorize these with the linux port, by putting them into a > > > > shared file that is linked-in in both ports cases. > > > Do you mean having the following structure? > > > /----- hurd-hwlock-rtc.c \ > > > hwclock.c hwclock-rtc.c > > > \----- linux-hwlock-rtc.c / > > > > > > hwclock-rtc.c contains close_rtc, open_rtc, etc. > > > > Yes. > I think another of supporting hwclock in Hurd is implementing more ioctl > calls (RTC_UIE_ON, RTC_PARAM_GET, etc) for rtc. The current compile errors > seem to be mainly due to the lack of RTC ioctl macros (i.e. RTC_UIE_ON, > etc).
That's also a solution, though more involved in terms of implementing RPCs. Notably UIE_ON will have to be blocking. Samuel