rv = _PR_EmulateAcceptRead(sd, nd, raddr, buf, amount, timeout);
rv = PR_EmulateAcceptRead(sd, nd, raddr, buf, amount, timeout);
static PRInt32 PR_CALLBACK SocketAcceptRead(PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf, PRInt32 amount,PRIntervalTime timeout){	PRInt32 rv;	PRThread *me = _PR_MD_CURRENT_THREAD();	if (_PR_PENDING_INTERRUPT(me)) {		me->flags &= ~_PR_INTERRUPT;		PR_SetError(PR_PENDING_INTERRUPT_ERROR, 0);		return -1;	}	if (_PR_IO_PENDING(me)) {		PR_SetError(PR_IO_PENDING_ERROR, 0);		return -1;	}	/* The socket must be in blocking mode. */	if (sd->secret->nonblocking) {		PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);		return -1;	}	*nd = NULL;#if defined(WINNT)	{	PRInt32 newSock;	PRNetAddr *raddrCopy;	if (raddr == NULL) {		raddr = &raddrCopy;	}	rv = _PR_MD_ACCEPT_READ(sd, &newSock, raddr, buf, amount, timeout);	if (rv < 0) {		rv = -1;	} else {		/* Successfully accepted and read; create the new PRFileDesc */		*nd = PR_AllocFileDesc(newSock, PR_GetTCPMethods());		if (*nd == 0) {			_PR_MD_CLOSE_SOCKET(newSock);			/* PR_AllocFileDesc() has invoked PR_SetError(). */			rv = -1;		} else {			(*nd)->secret->md.io_model_committed = PR_TRUE;			(*nd)->secret->md.accepted_socket = PR_TRUE;			memcpy(&(*nd)->secret->md.peer_addr, *raddr,				PR_NETADDR_SIZE(*raddr));#ifdef _PR_INET6			if (AF_INET6 == *raddr->raw.family)        		*raddr->raw.family = PR_AF_INET6;#endif		}	}	}#else	rv = _PR_EmulateAcceptRead(sd, nd, raddr, buf, amount, timeout);#endif	return rv;}