Re: [PATCH] hwclock: Support GNU Hurd

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

 



On Mon, Dec 09, 2024 at 10:58:15AM GMT, Zhaoming Luo wrote:
>  	if (ctl->rtc_dev_name) {
>  		rtc_dev_name = ctl->rtc_dev_name;
> -		rtc_dev_fd = open(rtc_dev_name, O_RDONLY);
> +		rtc_dev_fd = open(rtc_dev_name, O_RDWR);

Why do you need O_RDWR on HURD? Maybe it would be better to add an
#ifdef, as it is unnecessary for Linux.

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com





[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux