rv = PR_PushIOLayer(*nd, PR_TOP_IO_LAYER, newstack); PR_ASSERT(PR_SUCCESS == rv); return nbytes;
if (newstyle_stack) { newstack->lower = *nd; (*nd)->higher = newstack; *nd = newstack; return nbytes; } else {  rv = PR_PushIOLayer(*nd, PR_TOP_IO_LAYER, newstack); PR_ASSERT(PR_SUCCESS == rv); return nbytes; }
static PRInt32 PR_CALLBACK pl_DefAcceptread (    PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf,    PRInt32 amount, PRIntervalTime t){    PRInt32 nbytes;    PRStatus rv;    PRFileDesc *newstack;    PR_ASSERT(sd != NULL);    PR_ASSERT(sd->lower != NULL);    newstack = PR_NEW(PRFileDesc);    if (NULL == newstack)    {        PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);        return -1;    }    *newstack = *sd;  /* make a copy of the accepting layer */    nbytes = sd->lower->methods->acceptread(        sd->lower, nd, raddr, buf, amount, t);    if (-1 == nbytes)    {        PR_DELETE(newstack);        return nbytes;    }    /* this PR_PushIOLayer call cannot fail */    rv = PR_PushIOLayer(*nd, PR_TOP_IO_LAYER, newstack);    PR_ASSERT(PR_SUCCESS == rv);    return nbytes;}