mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
Modified for work without options COM_BIDIR into kernel.
This commit is contained in:
parent
127447df73
commit
9bfbbf452b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=839
|
@ -58,12 +58,10 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (argc == 2) {
|
||||
if (ioctl(fd, TIOCMGBIDIR, &res) < 0) {
|
||||
perror("TIOCMGBIDIR");
|
||||
exit(1);
|
||||
if (ioctl(fd, TIOCMGBIDIR, &res) >= 0) {
|
||||
if (!res) printf("-");
|
||||
printf("bidir ");
|
||||
}
|
||||
if (!res) printf("-");
|
||||
printf("bidir ");
|
||||
if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) {
|
||||
perror("TIOCMGDTRWAIT");
|
||||
exit(1);
|
||||
|
|
|
@ -58,12 +58,10 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (argc == 2) {
|
||||
if (ioctl(fd, TIOCMGBIDIR, &res) < 0) {
|
||||
perror("TIOCMGBIDIR");
|
||||
exit(1);
|
||||
if (ioctl(fd, TIOCMGBIDIR, &res) >= 0) {
|
||||
if (!res) printf("-");
|
||||
printf("bidir ");
|
||||
}
|
||||
if (!res) printf("-");
|
||||
printf("bidir ");
|
||||
if (ioctl(fd, TIOCMGDTRWAIT, &dtrwait) < 0) {
|
||||
perror("TIOCMGDTRWAIT");
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in a new issue