mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
libc/termios: satisfy vbox6 serial-port
This commit adds support for TIOCSETA and TIOCFLUSH in a dummy fashion that is enough to allow vbox6's serial-port implementation to print lines to the log. Issue #5330.
This commit is contained in:
parent
2e584f2f86
commit
e199d937e2
@ -1127,6 +1127,19 @@ Libc::Vfs_plugin::_ioctl_tio(File_descriptor *fd, unsigned long request, char *a
|
|||||||
termios->c_ispeed = 0;
|
termios->c_ispeed = 0;
|
||||||
termios->c_ospeed = 0;
|
termios->c_ospeed = 0;
|
||||||
|
|
||||||
|
handled = true;
|
||||||
|
|
||||||
|
} else if (request == TIOCSETA) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* As TIOCGETA above only returns the for now required
|
||||||
|
* options ignore any attempt to set them.
|
||||||
|
*/
|
||||||
|
|
||||||
|
handled = true;
|
||||||
|
|
||||||
|
} else if (request == TIOCFLUSH) {
|
||||||
|
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1921,7 +1934,9 @@ int Libc::Vfs_plugin::ioctl(File_descriptor *fd, unsigned long request, char *ar
|
|||||||
|
|
||||||
switch (request) {
|
switch (request) {
|
||||||
case TIOCGWINSZ:
|
case TIOCGWINSZ:
|
||||||
|
case TIOCFLUSH:
|
||||||
case TIOCGETA:
|
case TIOCGETA:
|
||||||
|
case TIOCSETA:
|
||||||
result = _ioctl_tio(fd, request, argp);
|
result = _ioctl_tio(fd, request, argp);
|
||||||
break;
|
break;
|
||||||
case DIOCGMEDIASIZE:
|
case DIOCGMEDIASIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user