Hi,

I am trying to learn how to add the /dev/rtc device as it is in *Small hack entries* in https://darnassus.sceen.net/~hurd-web/contributing/. I found that `hwclock` command will try to detect /dev/rtc [1]. However, the probing work will only be done when the system-specific pre-defined macro `__linux__` is defined [2]. Gnu/Hurd does not have this macro [3]. The command `hwclock` is from utils-linux. I think utils-linux is used without any modifications because I didn't find a git for utils-linux of Gnu/Hurd on the git repositories <https://git.savannah.gnu.org/cgit/hurd>. Does that mean `hwclock` will still not be able to access /dev/rtc after /dev/rtc is implemented?

[1]: https://github.com/util-linux/util-linux/blob/f1c26f0154ec683065109d776e65e568e3917c79/sys-utils/hwclock-rtc.c#L83-L124 [2]: https://github.com/util-linux/util-linux/blob/f1c26f0154ec683065109d776e65e568e3917c79/sys-utils/hwclock.c#L987-L990
[3]: https://sourceforge.net/p/predef/wiki/OperatingSystems/

Best,
Zhaoming

Reply via email to