User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:berror.3

berror

Name

Berror — Last UBF API error code

Synopsis

#include <ubf.h>

#define Berror (*ndrx_Bget_Ferror_addr())

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Macros returns last error code which occurred in UBF library. The error code is reset for every UBF library call which provides errors. The value is stored in Thread Local Storage (TLS). Thus usage of Berror macro is thread safe.

RETURN VALUE

Last UBF error code.

Following error codes currently are defined (see ubf.h):

#define BMINVAL             0  /**< min error */
#define BERFU0              1  /**< Reserved for future use */
#define BALIGNERR           2  /**< Buffer not aligned to platform address or corrupted */
#define BNOTFLD             3  /**< Buffer not fielded / TLV formatted          */
#define BNOSPACE            4  /**< No space in buffer */
#define BNOTPRES            5  /**< Field not present */
#define BBADFLD             6  /**< Bad field ID */
#define BTYPERR             7  /**< Bad field type */
#define BEUNIX              8  /**< System error occurred */
#define BBADNAME            9  /**< Bad field name */
#define BMALLOC             10 /**< Malloc failed, out of mem? */
#define BSYNTAX             11 /**< UBF Boolean expression error or UBF bad text format */
#define BFTOPEN             12 /**< Failed to open field tables */
#define BFTSYNTAX           13 /**< Field table syntax error */
#define BEINVAL             14 /**< Invalid value */
#define BERFU1              15 /**< Reserved for future use */
#define BBADTBL             16 /**< Reserved for future use */
#define BBADVIEW            17 /**< Invalid compiled VIEW file */
#define BVFSYNTAX           18 /**< Source VIEW file syntax error */
#define BVFOPEN             19 /**< Failed to open VIEW file */
#define BBADACM             20 /**< Reserved for future use */
#define BNOCNAME            21 /**< Structure field not found for VIEW */
#define BEBADOP             22 /**< Reserved for future use */
#define BMAXVAL             22 /* max error */

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd