123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- --- picocom-1.7.orig/term.c 2010-05-29 00:41:19.000000000 +0200
- +++ picocom-1.7/term.c 2013-12-26 09:45:20.000000000 +0100
- @@ -33,11 +33,7 @@
- #include <string.h>
- #include <errno.h>
- #include <unistd.h>
- -#ifdef __linux__
- -#include <termio.h>
- -#else
- #include <termios.h>
- -#endif /* of __linux__ */
-
- #include "term.h"
-
- @@ -945,27 +941,6 @@ term_pulse_dtr (int fd)
- break;
- }
-
- -#ifdef __linux__
- - {
- - int opins = TIOCM_DTR;
- -
- - r = ioctl(fd, TIOCMBIC, &opins);
- - if ( r < 0 ) {
- - term_errno = TERM_EDTRDOWN;
- - rval = -1;
- - break;
- - }
- -
- - sleep(1);
- -
- - r = ioctl(fd, TIOCMBIS, &opins);
- - if ( r < 0 ) {
- - term_errno = TERM_EDTRUP;
- - rval = -1;
- - break;
- - }
- - }
- -#else
- {
- struct termios tio, tioold;
-
- @@ -997,8 +972,6 @@ term_pulse_dtr (int fd)
- break;
- }
- }
- -#endif /* of __linux__ */
- -
- } while (0);
-
- return rval;
- @@ -1020,19 +993,6 @@ term_raise_dtr(int fd)
- rval = -1;
- break;
- }
- -
- -#ifdef __linux__
- - {
- - int opins = TIOCM_DTR;
- -
- - r = ioctl(fd, TIOCMBIS, &opins);
- - if ( r < 0 ) {
- - term_errno = TERM_EDTRUP;
- - rval = -1;
- - break;
- - }
- - }
- -#else
- r = tcsetattr(fd, TCSANOW, &term.currtermios[i]);
- if ( r < 0 ) {
- /* FIXME: perhaps try to update currtermios */
- @@ -1040,7 +1000,6 @@ term_raise_dtr(int fd)
- rval = -1;
- break;
- }
- -#endif /* of __linux__ */
- } while (0);
-
- return rval;
- @@ -1064,18 +1023,6 @@ term_lower_dtr(int fd)
- break;
- }
-
- -#ifdef __linux__
- - {
- - int opins = TIOCM_DTR;
- -
- - r = ioctl(fd, TIOCMBIC, &opins);
- - if ( r < 0 ) {
- - term_errno = TERM_EDTRDOWN;
- - rval = -1;
- - break;
- - }
- - }
- -#else
- {
- struct termios tio;
-
- @@ -1097,7 +1044,6 @@ term_lower_dtr(int fd)
- break;
- }
- }
- -#endif /* of __linux__ */
- } while (0);
-
- return rval;
|