/usr/include/gadap_err.h is in libgadap-dev 2.0-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | /* Copyright (C) 2003-2008 by the
* Institute of Global Environment and Society (IGES)
* See the file COPYRIGHT for more information.
*
*
* gadap_err.h: Error codes for the gadap library.
*
* Note that all actual returned errors are *negative*.
* E.g. to test for a DAP error, the return code should be
* compared to errval(GADAP_ERR_DAP_ERR), not just GADAP_ERR_DAP_ERR.
*
*/
#ifndef _gadap_err_h_
#define _gadap_err_h_
#define errval(val) (-1 * val)
enum gadap_err_codes {
GADAP_SUCCESS = 0,
GADAP_ERR_INVALID_HANDLE,
GADAP_ERR_INDEX_OUT_OF_RANGE,
GADAP_ERR_NAME_NOT_FOUND,
GADAP_ERR_INVALID_QUERY,
GADAP_ERR_DAP_ERROR,
GADAP_ERR_BAD_NUMERIC_FORMAT,
GADAP_ERR_BAD_VARIABLE_TYPE,
GADAP_ERR_UNKNOWN_LENGTH
};
#endif
|