From 123e9a592b5095820383de5d2599ad3cf54ef3cf Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 30 May 1994 03:49:16 +0000 Subject: From Bde: o Removed bidir options. --- sbin/comcontrol/comcontrol.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'sbin/comcontrol/comcontrol.c') diff --git a/sbin/comcontrol/comcontrol.c b/sbin/comcontrol/comcontrol.c index e88e3d8f71e0..40cf8d25c8a8 100644 --- a/sbin/comcontrol/comcontrol.c +++ b/sbin/comcontrol/comcontrol.c @@ -38,7 +38,7 @@ void usage(char *progname) { - fprintf(stderr, "usage: %s [[-]bidir] [dtrwait ]\n", progname); + fprintf(stderr, "usage: %s [dtrwait ]\n", progname); exit(1); } @@ -58,10 +58,6 @@ int main(int argc, char *argv[]) } if (argc == 2) { - if (ioctl(fd, TIOCMGBIDIR, &res) >= 0) { - if (!res) printf("-"); - printf("bidir "); - } if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) { perror("TIOCMGDTRWAIT"); exit(1); @@ -72,17 +68,7 @@ int main(int argc, char *argv[]) res = dtrwait = -1; while (argv[2] != NULL) { - if (!strcmp(argv[2],"bidir")) { - if (res >= 0) - usage(prg); - res = 1; - argv++; - } else if (!strcmp(argv[2],"-bidir")) { - if (res >= 0) - usage(prg); - res = 0; - argv++; - } else if (!strcmp(argv[2],"dtrwait")) { + if (!strcmp(argv[2],"dtrwait")) { if (dtrwait >= 0) usage(prg); if (argv[3] == NULL || !isdigit(argv[3][0])) @@ -93,12 +79,6 @@ int main(int argc, char *argv[]) usage(prg); } } - if (res >= 0) { - if (ioctl(fd, TIOCMSBIDIR, &res) < 0) { - perror("TIOCMSBIDIR"); - exit(1); - } - } if (dtrwait >= 0) { if (ioctl(fd, TIOCMSDTRWAIT, &dtrwait) < 0) { perror("TIOCMSDTRWAIT"); -- cgit v1.2.3