Home | History | Annotate | Line # | Download | only in tvctrl
tvctrl.c revision 1.3
      1 /*	$NetBSD: tvctrl.c,v 1.3 1998/08/06 14:08:55 minoura Exp $	*/
      2 
      3 #include <sys/types.h>
      4 #include <sys/errno.h>
      5 #include <sys/ioctl.h>
      6 #include <machine/iteioctl.h>
      7 
      8 main(argc, argv)
      9      int argc;
     10      char *argv[];
     11 {
     12   unsigned char ctl;
     13   if (argc < 2) printf("usage: %s control_number [...]\n", argv[0]), exit(1);
     14   while (argv++, --argc != 0) {
     15     ctl = atoi(argv[0]);
     16     if (ioctl(0, ITETVCTRL, &ctl)) perror(errno);
     17   }
     18 }
     19