NetBSD/sys/arch/x68k/usr.bin/tvctrl/tvctrl.c

17 lines
377 B
C
Raw Normal View History

1996-05-05 16:17:03 +04:00
#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);
}
}