mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Merge pull request #3649 from cesanta/frt
handle (more) FreeRTOS proprietary return codes
This commit is contained in:
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -1106,7 +1106,8 @@ static inline void *mg_calloc(size_t cnt, size_t size) {
|
|||||||
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
|
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
|
||||||
|
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
|
||||||
|
|
||||||
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -29,7 +29,8 @@
|
|||||||
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
||||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
|
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
|
||||||
|
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
|
||||||
|
|
||||||
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user