Subject: bin/32436: wsconsctl(8) "Use explicit arg to view map" when using "-a"
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <igor@string1.ciencias.uniovi.es>
List: netbsd-bugs
Date: 01/02/2006 21:50:00
>Number:         32436
>Category:       bin
>Synopsis:       wsconsctl(8) "Use explicit arg to view map" when using "-a"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 02 21:50:00 +0000 2006
>Originator:     Igor Sobrado
>Release:        NetBSD 3.0
>Organization:
	University of Oviedo
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD localhost 3.0 NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon Dec 19 01:08:52 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	wsconsctl(8) returns a "Use explicit arg to view map." message
	when using "-a" to specify all the variables when printing the
	value of those variables for the specified device.

	This is a trace for "wsconsctl -a":

	type=pc-xt
	bell.pitch=1500
	bell.period=100
	bell.volume=50
	bell.pitch.default=1500
	bell.period.default=100
	bell.volume.default=50
	repeat.del1=400
	repeat.deln=100
	repeat.del1.default=400
	repeat.deln.default=100
	ledstate=0
	encoding=us
	keyclick=0
	scroll.mode=0
	scroll.modifier=0
	  6288 ktruss   emul(netbsd)
	  6288 ktruss   fcntl(0x4, 0x3, 0)                 = 1
	  6288 ktruss   fcntl(0x4, 0x4, 0x1)               = 0
	  6288 ktruss   execve("/home/sobrado/bin/wsconsctl", 0xbfbfea04, 0xbfbfea10) Err#2 ENOENT
	  6288 ktruss   execve("/bin/wsconsctl", 0xbfbfea04, 0xbfbfea10) Err#2 ENOENT
	  6288 wsconsctl emul(netbsd)
	  6288 wsconsctl execve("/sbin/wsconsctl", 0xbfbfea04, 0xbfbfea10) JUSTRETURN
	  6288 wsconsctl mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdbeb000
	  6288 wsconsctl open("/etc/ld.so.conf", 0, 0)     = 3
	  6288 wsconsctl __fstat13(0x3, 0xbfbfe908)        = 0
	  6288 wsconsctl mmap(0, 0x37, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
	  6288 wsconsctl close(0x3)                        = 0
	  6288 wsconsctl munmap(0xbdbea000, 0x37)          = 0
	  6288 wsconsctl open("/lib/libc.so.12", 0, 0)     = 3
	  6288 wsconsctl __fstat13(0x3, 0xbfbfe608)        = 0
	  6288 wsconsctl mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
	  6288 wsconsctl munmap(0xbdbea000, 0x1000)        = 0
	  6288 wsconsctl mmap(0, 0xc2000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbdb29000
	  6288 wsconsctl mmap(0xbdbd5000, 0x7000, 0x3, 0x12, 0x3, 0, 0xab000, 0) = 0xbdbd5000
	  6288 wsconsctl mmap(0xbdbdc000, 0xf000, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xbdbdc000
	  6288 wsconsctl close(0x3)                        = 0
	  6288 wsconsctl open("/dev/wskbd", 0x1, 0x804e6d0) = 3
	  6288 wsconsctl ioctl(0x3, _IOW('W',0,0x4), 0x8050f20) = 0
	       "\^C\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x4,0x10), 0x8050f28) = 0
	       "\a\0\0\0\M-\\^E\0\0d\0\0\0002\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x6,0x10), 0x8050f38) = 0
	       "\a\0\0\0\M-\\^E\0\0d\0\0\0002\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x8,0xc), 0x805af60) = 0
	       "\^C\0\0\0\M^P\^A\0\0d\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x8,0xc), 0x805af6c) = 0
	       "\^C\0\0\0\M^P\^A\0\0d\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0xc,0x4), 0x805af84) = 0
	       "\0\0\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0xf,0x4), 0x805af88) = 0
	       "\0\^B\0\0"
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x16,0x4), 0x8050f24) Err#25 ENOTTY
	  6288 wsconsctl ioctl(0x3, _IOW('W',0x17,0xc), 0x805af78) Err#19 ENODEV
	  6288 wsconsctl __fstat13(0x1, 0xbfbfe500)        = 0
	  6288 wsconsctl __sysctl(0xbfbfe478, 0x2, 0xbfbfe470, 0xbfbfe474, 0, 0) = 0
	  6288 wsconsctl readlink("/etc/malloc.conf", 0xbfbfe4f0, 0x3f) Err#2 ENOENT
	  6288 wsconsctl mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdb28000
	  6288 wsconsctl break(0x8065b90)                  = 0
	  6288 wsconsctl break(0x8066b90)                  = 0
	  6288 wsconsctl break(0x8067000)                  = 0
	  6288 wsconsctl break(0x806b000)                  = 0
	  6288 wsconsctl write(0x2, 0xbfbfdfe0, 0xb)       = 11
	       "wsconsctl: "
	  6288 wsconsctl write(0x2, 0xbfbfe000, 0x1d)      = 29
	       "Use explicit arg to view map."
	  6288 wsconsctl write(0x2, 0x8050e1b, 0x1)        = 1
	       "\n"
	  6288 wsconsctl close(0x3)                        = 0
	  6288 wsconsctl write(0x1, 0x8067000, 0x113)      = 275
	       "type=pc-xt\nbell.pitch=1500\nbell.period=100\nbell.volume=50\nbell.pi"
	  6288 wsconsctl exit(0)
>How-To-Repeat:
	# wsconsctl -a
	type=pc-xt
	bell.pitch=1500
	bell.period=100
	bell.volume=50
	bell.pitch.default=1500
	bell.period.default=100
	bell.volume.default=50
	wsconsctl: Use explicit arg to view map.
	repeat.del1=400
	repeat.deln=100
	repeat.del1.default=400
	repeat.deln.default=100
	ledstate=0
	encoding=us
	keyclick=0
	scroll.mode=0
	scroll.modifier=0
>Fix:
	Don't know... sorry.

>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>