Re: [RFC PATCH v2] Add rtc server, rtc-read and rtc-set operations

2024-11-25 Thread Zhaoming Luo
Thanks for the review On 11/25/24 8:57 AM, Samuel Thibault wrote: This looks good. The last step is then to update util-linux to use it. The code from sys-utils/hwclock-rtc.c (read_hardware_clock_rtc, set_hardware_clock_rtc) can be moved out to another file, that a hurd version could use (yo

Re: [RFC PATCH v2] Add rtc server, rtc-read and rtc-set operations

2024-11-24 Thread Samuel Thibault
Hello, Zhaoming Luo, le mer. 20 nov. 2024 20:06:19 +0800, a ecrit: > Some coding style fixes. The rtc read operation can calculate day of year > based on month, day of month and year. Use only one thread for accessing > rtc to avoid data race. This looks good. The last step is then to update uti

[RFC PATCH v2] Add rtc server, rtc-read and rtc-set operations

2024-11-20 Thread Zhaoming Luo
Some coding style fixes. The rtc read operation can calculate day of year based on month, day of month and year. Use only one thread for accessing rtc to avoid data race. * Makefile: add rtc server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.