summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-12-09 19:57:50 +0000
committerRoland McGrath <roland@gnu.org>1994-12-09 19:57:50 +0000
commit3829c914a72bee16d1f2e3bfc7d4fd56ca081597 (patch)
tree70237e6e4101dc5d39d01b8940e5df8c6c3d9057
parentdf7927cdfca64e727bc6d6adfad49a4576baf628 (diff)
(fioctl): Pass a mach_msg_type_number_t* to __io_readable.
-rw-r--r--hurd/hurdioctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hurd/hurdioctl.c b/hurd/hurdioctl.c
index d39d27cb56..7a666c1fbc 100644
--- a/hurd/hurdioctl.c
+++ b/hurd/hurdioctl.c
@@ -56,7 +56,12 @@ fioctl (int fd,
break;
case FIONREAD:
- err = HURD_DPORT_USE (fd, __io_readable (port, arg));
+ {
+ mach_msg_type_number_t navail;
+ err = HURD_DPORT_USE (fd, __io_readable (port, &navail));
+ if (!err)
+ *arg = (int) navail;
+ }
break;
case FIONBIO: