Back to home page

Enduro/X

 
 

    


0001 BERROR(3)
0002 =========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 Berror - Last UBF API error code
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <ubf.h>
0014 
0015 #define Berror  (*ndrx_Bget_Ferror_addr())
0016 
0017 Link with '-lubf -lnstd -lm -lpthread'
0018 
0019 DESCRIPTION
0020 -----------
0021 Macros returns last error code which occurred in UBF library. The error code
0022 is reset for every UBF library call which provides errors. The value is stored
0023 in Thread Local Storage (TLS). Thus usage of *Berror* macro is thread safe.
0024 
0025 RETURN VALUE
0026 ------------
0027 Last UBF error code.
0028 
0029 Following error codes currently are defined (see ubf.h):
0030 
0031 --------------------------------------------------------------------------------
0032 
0033 #define BMINVAL             0  /**< min error */
0034 #define BERFU0              1  /**< Reserved for future use */
0035 #define BALIGNERR           2  /**< Buffer not aligned to platform address or corrupted */
0036 #define BNOTFLD             3  /**< Buffer not fielded / TLV formatted          */
0037 #define BNOSPACE            4  /**< No space in buffer */
0038 #define BNOTPRES            5  /**< Field not present */
0039 #define BBADFLD             6  /**< Bad field ID */
0040 #define BTYPERR             7  /**< Bad field type */
0041 #define BEUNIX              8  /**< System error occurred */
0042 #define BBADNAME            9  /**< Bad field name */
0043 #define BMALLOC             10 /**< Malloc failed, out of mem? */
0044 #define BSYNTAX             11 /**< UBF Boolean expression error or UBF bad text format */
0045 #define BFTOPEN             12 /**< Failed to open field tables */
0046 #define BFTSYNTAX           13 /**< Field table syntax error */
0047 #define BEINVAL             14 /**< Invalid value */
0048 #define BERFU1              15 /**< Reserved for future use */
0049 #define BBADTBL             16 /**< Reserved for future use */
0050 #define BBADVIEW            17 /**< Invalid compiled VIEW file */
0051 #define BVFSYNTAX           18 /**< Source VIEW file syntax error */
0052 #define BVFOPEN             19 /**< Failed to open VIEW file */
0053 #define BBADACM             20 /**< Reserved for future use */
0054 #define BNOCNAME            21 /**< Structure field not found for VIEW */
0055 #define BEBADOP             22 /**< Reserved for future use */
0056 #define BMAXVAL             22 /* max error */
0057 
0058 --------------------------------------------------------------------------------
0059 
0060 BUGS
0061 ----
0062 Report bugs to support@mavimax.com
0063 
0064 SEE ALSO
0065 --------
0066 *Bstrerror(3)* *B_error(3)*
0067 
0068 COPYING
0069 -------
0070 (C) Mavimax, Ltd
0071