The Pedigree Project
0.1
src
modules
system
lwip
include
lwip
err.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008-2014, Pedigree Developers
3
*
4
* Please see the CONTRIB file in the root of the source tree for a full
5
* list of contributors.
6
*
7
* Permission to use, copy, modify, and distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
10
*
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
*/
19
24
/*
25
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
26
* All rights reserved.
27
*
28
* Redistribution and use in source and binary forms, with or without modification,
29
* are permitted provided that the following conditions are met:
30
*
31
* 1. Redistributions of source code must retain the above copyright notice,
32
* this list of conditions and the following disclaimer.
33
* 2. Redistributions in binary form must reproduce the above copyright notice,
34
* this list of conditions and the following disclaimer in the documentation
35
* and/or other materials provided with the distribution.
36
* 3. The name of the author may not be used to endorse or promote products
37
* derived from this software without specific prior written permission.
38
*
39
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
40
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
41
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
42
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
43
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
44
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
45
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
46
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
47
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
48
* OF SUCH DAMAGE.
49
*
50
* This file is part of the lwIP TCP/IP stack.
51
*
52
* Author: Adam Dunkels <adam@sics.se>
53
*
54
*/
55
#ifndef LWIP_HDR_ERR_H
56
#define LWIP_HDR_ERR_H
57
58
#include "
lwip/opt.h
"
59
#include "
lwip/arch.h
"
60
61
#ifdef __cplusplus
62
extern
"C"
{
63
#endif
64
73
#ifdef LWIP_ERR_T
74
typedef
LWIP_ERR_T
err_t
;
75
#else
/* LWIP_ERR_T */
76
typedef
s8_t
err_t
;
77
#endif
/* LWIP_ERR_T*/
78
80
typedef
enum
{
82
ERR_OK
= 0,
84
ERR_MEM
= -1,
86
ERR_BUF
= -2,
88
ERR_TIMEOUT
= -3,
90
ERR_RTE
= -4,
92
ERR_INPROGRESS
= -5,
94
ERR_VAL
= -6,
96
ERR_WOULDBLOCK
= -7,
98
ERR_USE
= -8,
100
ERR_ALREADY
= -9,
102
ERR_ISCONN
= -10,
104
ERR_CONN
= -11,
106
ERR_IF
= -12,
107
109
ERR_ABRT
= -13,
111
ERR_RST
= -14,
113
ERR_CLSD
= -15,
115
ERR_ARG
= -16
116
}
err_enum_t
;
117
118
#define ERR_IS_FATAL(e) ((e) <= ERR_ABRT)
119
124
#ifdef LWIP_DEBUG
125
extern
const
char
*lwip_strerr(
err_t
err);
126
#else
127
#define lwip_strerr(x) ""
128
#endif
/* LWIP_DEBUG */
129
130
#if !NO_SYS
131
int
err_to_errno(
err_t
err);
132
#endif
/* !NO_SYS */
133
134
#ifdef __cplusplus
135
}
136
#endif
137
138
#endif
/* LWIP_HDR_ERR_H */
arch.h
err_enum_t
err_enum_t
Definition
err.h:80
err_t
s8_t err_t
Definition
err.h:76
ERR_BUF
@ ERR_BUF
Definition
err.h:86
ERR_INPROGRESS
@ ERR_INPROGRESS
Definition
err.h:92
ERR_USE
@ ERR_USE
Definition
err.h:98
ERR_RST
@ ERR_RST
Definition
err.h:111
ERR_IF
@ ERR_IF
Definition
err.h:106
ERR_ISCONN
@ ERR_ISCONN
Definition
err.h:102
ERR_RTE
@ ERR_RTE
Definition
err.h:90
ERR_OK
@ ERR_OK
Definition
err.h:82
ERR_CLSD
@ ERR_CLSD
Definition
err.h:113
ERR_VAL
@ ERR_VAL
Definition
err.h:94
ERR_MEM
@ ERR_MEM
Definition
err.h:84
ERR_CONN
@ ERR_CONN
Definition
err.h:104
ERR_ARG
@ ERR_ARG
Definition
err.h:115
ERR_WOULDBLOCK
@ ERR_WOULDBLOCK
Definition
err.h:96
ERR_TIMEOUT
@ ERR_TIMEOUT
Definition
err.h:88
ERR_ALREADY
@ ERR_ALREADY
Definition
err.h:100
ERR_ABRT
@ ERR_ABRT
Definition
err.h:109
opt.h
Generated on Fri Oct 2 2026 06:39:19 for The Pedigree Project by
1.9.8