PRInt32 rv;
PRInt32 rv, err;
_PR_MD_GETSOCKOPT(PRFileDesc *fd, PRInt32 level, PRInt32 optname, char* optval, PRInt32* optlen){    PRInt32 rv;    rv = getsockopt((int)fd->secret->md.osfd, level, optname, optval, optlen);    if (rv==0)        return PR_SUCCESS;    else {        _PR_MD_MAP_GETSOCKOPT_ERROR(sock_errno());        return PR_FAILURE;    }}