Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
ldappr-error.c File Reference
#include "ldappr-int.h"

Go to the source code of this file.

Classes

struct  prldap_errormap_entry

Functions

void prldap_set_system_errno (int oserrno)
int prldap_get_system_errno (void)
int prldap_prerr2errno (void)

Variables

static struct prldap_errormap_entry []

Class Documentation

struct prldap_errormap_entry

Definition at line 64 of file ldappr-error.c.

Collaboration diagram for prldap_errormap_entry:
Class Members
PRInt32 erm_nspr
int erm_system

Function Documentation

Definition at line 55 of file ldappr-error.c.

{
    return( PR_GetOSError());
}

Here is the caller graph for this function:

Definition at line 321 of file ldappr-error.c.

{
    int              oserr, i;
    PRInt32   nsprerr;

    nsprerr = PR_GetError();

    oserr = -1;             /* unknown */
    for ( i = 0; prldap_errormap[i].erm_nspr != PR_MAX_ERROR; ++i ) {
       if ( prldap_errormap[i].erm_nspr == nsprerr ) {
           oserr = prldap_errormap[i].erm_system;
           break;
       }
    }

    return( oserr );
}

Here is the caller graph for this function:

Definition at line 48 of file ldappr-error.c.

{
    PR_SetError( PR_UNKNOWN_ERROR, oserrno );
}

Here is the caller graph for this function:


Variable Documentation

struct prldap_errormap_entry[] [static]

Definition at line 241 of file ldappr-error.c.