suricata
|
#include "threads.h"
Go to the source code of this file.
Enumerations | |
enum | SCError { SC_OK , SC_ENOMEM , SC_EINVAL , SC_ELIMIT , SC_EEXIST , SC_ENOENT , SC_ERR_MAX } |
Functions | |
const char * | SCErrorToString (SCError) |
Maps the error code, to its string equivalent. | |
Variables | |
thread_local SCError | sc_errno |
enum SCError |
Enumerator | |
---|---|
SC_OK | |
SC_ENOMEM | |
SC_EINVAL | |
SC_ELIMIT | |
SC_EEXIST | |
SC_ENOENT | |
SC_ERR_MAX |
Definition at line 26 of file util-error.h.
const char * SCErrorToString | ( | SCError | err | ) |
Maps the error code, to its string equivalent.
The | error code |
The | string equivalent for the error code |
Definition at line 41 of file util-error.c.
References CASE_CODE, SC_EEXIST, SC_EINVAL, SC_ELIMIT, SC_ENOENT, SC_ENOMEM, SC_ERR_MAX, and SC_OK.
|
extern |
Definition at line 31 of file util-error.c.
Referenced by HashListTableInit(), HTPCalloc(), HTPMalloc(), HTPRealloc(), MemBufferCreateNew(), PoolInit(), PoolThreadInit(), SCHInfoAddHostOSInfo(), SCRadix4AddKeyIPV4String(), SCRadix6AddKeyIPV6String(), StreamingBufferInit(), StreamingBufferInsertAt(), and StreamTcpReassembleRealloc().