ReactOS 0.4.16-dev-336-gb667d82
err.h File Reference
#include "lwip/opt.h"
#include "lwip/arch.h"
Include dependency graph for err.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define lwip_strerr(x)   ""
 

Typedefs

typedef s8_t err_t
 

Enumerations

enum  err_enum_t {
  ERR_OK = 0 , ERR_MEM = -1 , ERR_BUF = -2 , ERR_TIMEOUT = -3 ,
  ERR_RTE = -4 , ERR_INPROGRESS = -5 , ERR_VAL = -6 , ERR_WOULDBLOCK = -7 ,
  ERR_USE = -8 , ERR_ALREADY = -9 , ERR_ISCONN = -10 , ERR_CONN = -11 ,
  ERR_IF = -12 , ERR_ABRT = -13 , ERR_RST = -14 , ERR_CLSD = -15 ,
  ERR_ARG = -16
}
 

Functions

int err_to_errno (err_t err)
 

Detailed Description

lwIP Error codes

Definition in file err.h.

Macro Definition Documentation

◆ lwip_strerr

#define lwip_strerr (   x)    ""

Definition at line 106 of file err.h.

Function Documentation

◆ err_to_errno()

int err_to_errno ( err_t  err)

Definition at line 69 of file err.c.

70{
71 if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
72 return EIO;
73 }
74 return err_to_errno_table[-err];
75}
#define EIO
Definition: acclib.h:81
#define LWIP_ARRAYSIZE(x)
Definition: def.h:69
static const int err_to_errno_table[]
Definition: err.c:48
s8_t err_t
Definition: err.h:96
#define err(...)