NetBSD/sys/arch/x68k/usr.bin/tvctrl/tvctrl.c
1996-05-05 12:17:03 +00:00

17 lines
377 B
C

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include "../../dev/iteioctl.h" /* XXX */
main(argc, argv)
int argc;
char *argv[];
{
unsigned char ctl;
if (argc < 2) printf("usage: %s control_number [...]\n", argv[0]), exit(1);
while (argv++, --argc != 0) {
ctl = atoi(argv[0]);
if (ioctl(0, ITETVCTRL, &ctl)) perror(errno);
}
}