2018-05-29 05:25:24 -04:00
|
|
|
|
2022-04-18 06:07:21 -04:00
|
|
|
/*
|
2024-02-26 21:00:06 -05:00
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
|
2022-04-18 06:07:21 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-05-29 05:25:24 -04:00
|
|
|
#ifndef _ESP_PLATFORM_ERRNO_H_
|
|
|
|
#define _ESP_PLATFORM_ERRNO_H_
|
|
|
|
|
|
|
|
#include_next "errno.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// Possibly define some missing errors
|
|
|
|
//
|
|
|
|
#ifndef ESHUTDOWN
|
2022-04-18 06:07:21 -04:00
|
|
|
#define ESHUTDOWN 110 /* Cannot send after transport endpoint shutdown */
|
2018-05-29 05:25:24 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EAI_SOCKTYPE
|
2024-02-26 21:00:06 -05:00
|
|
|
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
|
2018-05-29 05:25:24 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EAI_AGAIN
|
2024-02-26 21:00:06 -05:00
|
|
|
#define EAI_AGAIN 2 /* temporary failure in name resolution */
|
2018-05-29 05:25:24 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EAI_BADFLAGS
|
2024-02-26 21:00:06 -05:00
|
|
|
#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
|
2018-05-29 05:25:24 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // _ESP_PLATFORM_ERRNO_H_
|