PR_ASSERT(_PR_TRI_UNKNOWN != fd->secret->inheritable); if (fd->secret->nonblocking || fd->secret->inheritable) {
if (_NT_USE_NB_IO(fd)) {
_PR_MD_WRITEV(PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, PRIntervalTime timeout){    PRInt32 osfd = fd->secret->md.osfd;    int index;    int sent = 0;    int rv;    PR_ASSERT(_PR_TRI_UNKNOWN != fd->secret->inheritable);    if (fd->secret->nonblocking || fd->secret->inheritable) {        if (!fd->secret->md.io_model_committed) {            rv = _md_MakeNonblock((HANDLE)osfd);            PR_ASSERT(0 != rv);            fd->secret->md.io_model_committed = PR_TRUE;        }        return _nt_nonblock_writev(fd, iov, iov_size, timeout);    }    for (index=0; index<iov_size; index++) {        rv = _PR_MD_SEND(fd, iov[index].iov_base, iov[index].iov_len, 0,						timeout);        if (rv > 0)             sent += rv;        if ( rv != iov[index].iov_len ) {            if (sent <= 0)                return -1;            return -1;        }    }    return sent;}