Executes ioctl with the FIONREAD option.
fn ioctl_fionread(fd: i32, unread: &mut usize) -> i32
| Name | Description |
|---|---|
| fd | The file descriptor on which to operate. |
| unread | A place into which number of unread bytes will be placed. |
Returns success or an error value.