Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-03 Thread Samuel Thibault
Zhaoming Luo, le mer. 04 déc. 2024 11:04:02 +0800, a ecrit: > On 12/4/24 5:56 AM, Samuel Thibault wrote: > > 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

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-03 Thread Zhaoming Luo
On 12/4/24 5:56 AM, Samuel Thibault wrote: 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,

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-03 Thread Samuel Thibault
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 > > >

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-02 Thread Zhaoming Luo
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 follow

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-02 Thread Samuel Thibault
Zhaoming Luo, le mar. 03 déc. 2024 06:42:07 +0800, a ecrit: > On 12/2/24 10:12 AM, Samuel Thibault wrote: > > Hello, > Hi, > > Zhaoming Luo, le lun. 02 déc. 2024 10:06:48 +0800, a ecrit: > > > > > +static void close_rtc(void) > > > +{ > > [...] > > > +} > > > + > > > +static int open_rtc(const str

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-02 Thread Zhaoming Luo
On 12/2/24 10:12 AM, Samuel Thibault wrote: Hello, Hi, Zhaoming Luo, le lun. 02 déc. 2024 10:06:48 +0800, a ecrit: +static void close_rtc(void) +{ [...] +} + +static int open_rtc(const struct hwclock_control *ctl) +{ [...] +} + +static int open_rtc_or_exit(const struct hwclock_control

Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-01 Thread Samuel Thibault
Hello, Zhaoming Luo, le lun. 02 déc. 2024 10:06:48 +0800, a ecrit: > +static void close_rtc(void) > +{ [...] > +} > + > +static int open_rtc(const struct hwclock_control *ctl) > +{ [...] > +} > + > +static int open_rtc_or_exit(const struct hwclock_control *ctl) > +{ [...] > +} > + > +static int

[RFC PATCH util-linux] Support hwclock read and set operations for Hurd

2024-12-01 Thread Zhaoming Luo
From: Zhaoming Luo * configure.ac: add HURD conditional for meson build * sys-utils/Makemodule.am: compile hurd-specific rtc device operations * sys-utils/hurd-hwclock-rtc.c: new file, hurd-specific rtc device * operations * sys-utils/hwclock.c: add --rtc option and probe_for_rtc_clock for hwcloc