Subject: misc/30140: sysctl kern.rtc_offset is settable despite what the man page states
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <acruhl@gmail.com>
List: netbsd-bugs
Date: 05/05/2005 13:23:00
>Number:         30140
>Category:       misc
>Synopsis:       sysctl kern.rtc_offset is settable despite what the man page states
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 05 13:23:00 +0000 2005
>Originator:     Andy Ruhl
>Release:        2.0.2 i386
>Organization:
>Environment:
bugs# uname -a
NetBSD bugs 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
The man page for sysctl (section 3 and section 8) state that kern.rtc_offset is not settable. 

Therefore, I'm not sure if this is a functionality bug, or a documentation bug:

bugs# date
Wed May  4 23:19:17 MST 2005
bugs# sysctl -w kern.rtc_offset=420
kern.rtc_offset: 0 -> 420
bugs# sysctl -a | grep rtc
kern.rtc_offset = 420
bugs# date
Thu May  5 06:19:38 MST 2005
bugs#
>How-To-Repeat:
As above.
>Fix:
Either fix the documentation or the code. Not sure which.