suricata
util-error.h File Reference
#include "threads.h"
Include dependency graph for util-error.h:
This graph shows which files directly or indirectly include this file:

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. More...
 

Variables

thread_local SCError sc_errno
 

Enumeration Type Documentation

◆ SCError

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.

Function Documentation

◆ SCErrorToString()

const char* SCErrorToString ( SCError  err)

Maps the error code, to its string equivalent.

Parameters
Theerror code
Return values
Thestring 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.

Variable Documentation

◆ sc_errno