* fhandler_serial.cc (fhandler_serial::ioctl): Always return 0 for window size.
* termios.cc (tcgetattr): Clear out baud part of c_cflag since it is always ignored.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | ||||
| 2005-09-08  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* fhandler_serial.cc (fhandler_serial::ioctl): Always return 0 for | ||||
| 	window size. | ||||
| 	* termios.cc (tcgetattr): Clear out baud part of c_cflag since it is | ||||
| 	always ignored. | ||||
|  | ||||
| 2005-09-08  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* exceptions.cc (ctrl_c_handler): Disable any special CTRL_LOGOFF_EVENT | ||||
|   | ||||
| @@ -517,6 +517,10 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer) | ||||
|        else | ||||
| 	 ipbuffer = st.cbInQue; | ||||
|        break; | ||||
|      case TIOCGWINSZ: | ||||
|        ((struct winsize *) buffer)->ws_row = 0; | ||||
|        ((struct winsize *) buffer)->ws_col = 0; | ||||
|        break; | ||||
|      default: | ||||
|        set_errno (ENOSYS); | ||||
|        res = -1; | ||||
|   | ||||
| @@ -179,7 +179,10 @@ tcgetattr (int fd, struct termios *in_t) | ||||
|   else if (!cfd->is_tty ()) | ||||
|     set_errno (ENOTTY); | ||||
|   else if ((res = cfd->tcgetattr (t)) == 0) | ||||
|     __toapp_termios (in_t, t); | ||||
|     { | ||||
|       t->c_cflag &= ~CBAUD; | ||||
|       __toapp_termios (in_t, t); | ||||
|     } | ||||
|  | ||||
|   if (res) | ||||
|     termios_printf ("%d = tcgetattr (%d, %p)", res, fd, in_t); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user