(fioctl): Pass a mach_msg_type_number_t* to __io_readable.
authorroland <roland>
Fri, 9 Dec 1994 19:57:50 +0000 (19:57 +0000)
committerroland <roland>
Fri, 9 Dec 1994 19:57:50 +0000 (19:57 +0000)
hurd/hurdioctl.c

index d39d27c..7a666c1 100644 (file)
@@ -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: