if (ioctl(fd->secret->md.osfd, FIONREAD, (char *) &result, sizeof(result)) < 0) {
if (so_ioctl(fd->secret->md.osfd, FIONREAD, (char *) &result, sizeof(result)) < 0) {
_MD_SocketAvailable(PRFileDesc *fd){    PRInt32 result;    if (ioctl(fd->secret->md.osfd, FIONREAD, (char *) &result, sizeof(result)) < 0) {        PR_SetError(PR_BAD_DESCRIPTOR_ERROR, sock_errno());        return -1;    }    return result;}