root/orte/mca/errmgr/base/errmgr_private.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2005 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2010 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2010-2011 Oak Ridge National Labs.  All rights reserved.
  13  * Copyright (c) 2011      Los Alamos National Security, LLC.
  14  *                         All rights reserved.
  15  * Copyright (c) 2017      Intel, Inc. All rights reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 /** @file:
  23  */
  24 
  25 #ifndef ORTE_MCA_ERRMGR_PRIVATE_H
  26 #define ORTE_MCA_ERRMGR_PRIVATE_H
  27 
  28 /*
  29  * includes
  30  */
  31 #include "orte_config.h"
  32 #include "orte/constants.h"
  33 #include "orte/types.h"
  34 
  35 #ifdef HAVE_UNISTD_H
  36 #include <unistd.h>
  37 #endif  /* HAVE_UNISTD_H */
  38 
  39 #include "opal/dss/dss_types.h"
  40 #include "orte/mca/plm/plm_types.h"
  41 #include "orte/runtime/orte_globals.h"
  42 
  43 #include "orte/mca/errmgr/errmgr.h"
  44 
  45 /*
  46  * Functions for use solely within the ERRMGR framework
  47  */
  48 BEGIN_C_DECLS
  49 
  50 /* define a struct to hold framework-global values */
  51 typedef struct {
  52     opal_list_t error_cbacks;
  53 } orte_errmgr_base_t;
  54 
  55 ORTE_DECLSPEC extern orte_errmgr_base_t orte_errmgr_base;
  56 
  57 /* declare the base default module */
  58 ORTE_DECLSPEC extern orte_errmgr_base_module_t orte_errmgr_default_fns;
  59 
  60 /*
  61  * Base functions
  62  */
  63 ORTE_DECLSPEC void orte_errmgr_base_log(int error_code, char *filename, int line);
  64 
  65 ORTE_DECLSPEC void orte_errmgr_base_abort(int error_code, char *fmt, ...)
  66     __opal_attribute_format__(__printf__, 2, 3);
  67 ORTE_DECLSPEC int orte_errmgr_base_abort_peers(orte_process_name_t *procs,
  68                                                orte_std_cntr_t num_procs,
  69                                                int error_code);
  70 
  71 END_C_DECLS
  72 #endif

/* [<][>][^][v][top][bottom][index][help] */