Skip to content
Snippets Groups Projects
Commit 82363a35 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

add a TCGETS stub

this allows the stdio code to figure out if it should go into line
buffered mode.
parent c5558c73
No related branches found
No related tags found
No related merge requests found
...@@ -41,12 +41,23 @@ console_write(struct device *dev, struct uio *uio, int ioflag) ...@@ -41,12 +41,23 @@ console_write(struct device *dev, struct uio *uio, int ioflag)
return 0; return 0;
} }
static int
console_ioctl(struct device *dev, u_long request, void *arg)
{
switch (request) {
case 0x5401: // TCGETS
return 0; // XXX: stubbing out to get libc into line buffering mode
default:
return -ENOTTY;
}
}
static struct devops console_devops = { static struct devops console_devops = {
.open = no_open, .open = no_open,
.close = no_close, .close = no_close,
.read = no_read, .read = no_read,
.write = console_write, .write = console_write,
.ioctl = no_ioctl, .ioctl = console_ioctl,
.devctl = no_devctl, .devctl = no_devctl,
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment