Subject: kern/4576: sun3/sparc kbd(4) man page lies
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
List: netbsd-bugs
Date: 11/25/1997 20:49:11
>Number:         4576
>Category:       kern
>Synopsis:       sun3/sparc kbd(4) man page lies
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 25 11:50:02 1997
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
	
>Release:        NetBSD-current 25 Nov 1997
>Environment:
	
System: NetBSD ulysses 1.3_ALPHA NetBSD 1.3_ALPHA (KWA) #8: Fri Nov 21 22:17:14 CET 1997 cato@ulysses:/usr/src/sys/arch/sparc/compile/KWA sparc


>Description:
	
The kbd(4) man page claims that the argument to KIOCSLED and KIOCSLED ioctl
is of type int*, but it is char* in the source.

>How-To-Repeat:
	
>Fix:
	
Apply the following patch to src/share/man/man4/man4.sparc/kbd.4 and
src/share/man/man4/man4.sun3/kbd.4

diff -u kbd.4.bak kbd.4
--- kbd.4.bak   Fri Oct 10 01:22:07 1997
+++ kbd.4       Tue Nov 25 20:30:06 1997
@@ -137,7 +137,7 @@
 Set LED state
 .Pq Do type 4 Dc only .
 The argument is of type
-.Fa "int *" ,
+.Fa "char *" ,
 and is the inclusive OR of the following flags:
 .Pp
 .Bl -tag -width LED_SCROLL_LOCK -compact
@@ -152,7 +152,7 @@
 Get LED state
 .Pq Do type 4 Dc only .
 The argument is of type
-.Fa "int *" ,
+.Fa "char *" ,
 in which the current LED state is returned.
 .El
 .Sh SEE ALSO

>Audit-Trail:
>Unformatted: