mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
Modified for work without options COM_BIDIR into kernel.
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user