bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can `hwclock` access /dev/rtc after /dev/rtc is added?


From: Zhaoming Luo
Subject: Can `hwclock` access /dev/rtc after /dev/rtc is added?
Date: Wed, 2 Oct 2024 15:41:54 +0800
User-agent: Mozilla Thunderbird

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

[Prev in Thread] Current Thread [Next in Thread]