summaryrefslogtreecommitdiffstats
path: root/sbin/comcontrol/comcontrol.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-05-30 03:49:16 +0000
committerache <ache@FreeBSD.org>1994-05-30 03:49:16 +0000
commitd810debdee749bc87f12467df66822f1c1ced10c (patch)
tree223ab02afcfb9c92868521d9713c0986cc9837de /sbin/comcontrol/comcontrol.c
parent7109dadb871259b66a63acb225fe03287946d2b0 (diff)
downloadFreeBSD-src-d810debdee749bc87f12467df66822f1c1ced10c.zip
FreeBSD-src-d810debdee749bc87f12467df66822f1c1ced10c.tar.gz
From Bde:
o Removed bidir options.
Diffstat (limited to 'sbin/comcontrol/comcontrol.c')
-rw-r--r--sbin/comcontrol/comcontrol.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/sbin/comcontrol/comcontrol.c b/sbin/comcontrol/comcontrol.c
index e88e3d8..40cf8d2 100644
--- a/sbin/comcontrol/comcontrol.c
+++ b/sbin/comcontrol/comcontrol.c
@@ -38,7 +38,7 @@
void usage(char *progname)
{
- fprintf(stderr, "usage: %s <filename> [[-]bidir] [dtrwait <n>]\n", progname);
+ fprintf(stderr, "usage: %s <filename> [dtrwait <n>]\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");
OpenPOWER on IntegriCloud