OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | Functions | Variables
errcode-internal.h File Reference
`#include "ompi_config.h"`
`#include "mpi.h"`
`#include "ompi/constants.h"`
`#include "opal/class/opal_object.h"`
`#include "opal/class/opal_pointer_array.h"`
`#include "opal/util/opal_sos.h"`

Go to the source code of this file.

## Data Structures
struct | ompi_errcode_intern_t
| Back-end type for MPI error codes. More...

## Macros
#define | OMPI_MAX_ERROR_STRING 64

## Typedefs
typedef struct ompi_errcode_intern_t | ompi_errcode_intern_t

## Functions
static int | ompi_errcode_get_mpi_code (int errcode)
| Return the MPI errcode for a given internal error code. More...
int | ompi_errcode_intern_init (void)
| Initialize the error codes. More...
int | ompi_errcode_intern_finalize (void)
| Finalize the error codes. More...

## Variables
OMPI_DECLSPEC opal_pointer_array_t | ompi_errcodes_intern
OMPI_DECLSPEC int | ompi_errcode_intern_lastused

## Function Documentation

static int ompi_errcode_get_mpi_code | ( | int | errcode | ) |
| inline static

Return the MPI errcode for a given internal error code.

This function guarantees to return a non-OPAL_SOS-encoded error code.

References opal_pointer_array_get_item().

Referenced by ompi_errhandler_request_invoke().

int ompi_errcode_intern_finalize | ( | void |  | ) |

Finalize the error codes.

Returns
  OMPI_SUCCESS Always

Invokes from ompi_mpi_finalize(); tears down the error code array.

References OBJ_DESTRUCT.

Referenced by ompi_mpi_finalize().

int ompi_errcode_intern_init | ( | void |  | ) |

Initialize the error codes.

Returns
  OMPI_SUCCESS Upon success
  OMPI_ERROR Otherwise

Invoked from ompi_mpi_init(); sets up all static MPI error codes,

References OBJ_CONSTRUCT, opal_pointer_array_init(), and opal_pointer_array_set_item().

Referenced by ompi_mpi_init().