int rv = sock_errno(); soclose(sock); _PR_MD_MAP_SOCKET_ERROR(rv); return (PRInt32) -1;
err = sock_errno(); _PR_MD_MAP_SOCKET_ERROR(err);
_PR_MD_SOCKET(int af, int type, int flags){    int sock;    PRUint32  one = 1;    PRInt32   rv;    PRInt32   err;    sock = socket(af, type, flags);    if (sock == -1 )     {        int rv = sock_errno();        soclose(sock);        _PR_MD_MAP_SOCKET_ERROR(rv);        return (PRInt32) -1;    }    /*    ** Make the socket Non-Blocking    */    rv = ioctl( sock, FIONBIO, (char *) &one, sizeof(one));    if ( rv != 0 )    {        err = sock_errno();        return -1;    }    return (PRInt32)sock;}