1 /* $NetBSD: tvctrl.c,v 1.6.2.3 2004/09/21 13:24:21 skrll Exp $ */
4 __RCSID("$NetBSD: tvctrl.c,v 1.6.2.3 2004/09/21 13:24:21 skrll Exp $");
8 #include <machine/iteioctl.h>
13 int main(int, char *[]);
16 main(int argc
, char *argv
[])
23 fprintf(stderr
, "usage: %s control_number [...]\n", argv
[0]);
26 while (argv
++, --argc
!= 0) {
27 num
= strtoul(argv
[0], &ep
, 10);
28 if (num
> 255 || *ep
!= '\0')
29 errx(1, "illegal number -- %s", argv
[0]);
32 if (ioctl(0, ITETVCTRL
, &ctl
))
33 err(1, "ioctl(ITETVCTRL)");