summaryrefslogtreecommitdiff
path: root/boot/boot.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-02 20:40:09 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-02 20:40:09 +0000
commit9732303bb519dfdf5d161ed86530332450f26560 (patch)
treea525411abc7f80b68f6a11c098248081e5ad9459 /boot/boot.c
parent99f0588dc07cde6d0aff6d53638c917a04f60d42 (diff)
Formerly boot.c.~15~
Diffstat (limited to 'boot/boot.c')
-rw-r--r--boot/boot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c
index c7cda6ca..f797de31 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -865,7 +865,10 @@ error_t
S_io_readable (mach_port_t object,
int *amt)
{
- return EOPNOTSUPP;
+ if (object != pseudo_console)
+ return EOPNOTSUPP;
+ ioctl (0, FIONREAD, amt);
+ return 0;
}
error_t