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