1 /* 2 * Copyright (C) by Argonne National Laboratory 3 * See COPYRIGHT in top-level directory 4 */ 5 6 #ifndef MPL_ERR_H_INCLUDED 7 #define MPL_ERR_H_INCLUDED 8 9 /* this file defines all the return code all the MPL components */ 10 11 enum { 12 MPL_SUCCESS = 0, 13 MPL_ERR_THREAD, 14 MPL_ERR_PROC_MUTEX_EINTR, 15 MPL_ERR_PROC_MUTEX_EINVAL, 16 MPL_ERR_STR_FAIL, 17 MPL_ERR_STR_NOMEM, 18 MPL_ERR_STR_TRUNCATED, 19 MPL_ERR_DBG_INTERN, 20 MPL_ERR_DBG_OTHER, 21 MPL_ERR_SHM_INTERN, 22 MPL_ERR_SHM_INVAL, 23 MPL_ERR_SHM_NOMEM, 24 /* The timer code is allowed to return "NOT_INITIALIZED" before it is 25 * initialized. Once it is initialized, it must always return 26 * SUCCESS, so the upper layers do not need to check for the return 27 * code. */ 28 MPL_ERR_TIMER_NOT_INITIALIZED, 29 MPL_ERR_GPU_INTERNAL, 30 MPL_ERR_GPU_NOMEM, 31 MPL_ERR_NOMEM 32 }; 33 34 #endif /* MPL_ERR_H_INCLUDED */ 35