errno.h 663 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _ESP_PLATFORM_ERRNO_H_
  7. #define _ESP_PLATFORM_ERRNO_H_
  8. #include_next "errno.h"
  9. //
  10. // Possibly define some missing errors
  11. //
  12. #ifndef ESHUTDOWN
  13. #define ESHUTDOWN 110 /* Cannot send after transport endpoint shutdown */
  14. #endif
  15. #ifndef EAI_SOCKTYPE
  16. #define EAI_SOCKTYPE 10 /* ai_socktype not supported */
  17. #endif
  18. #ifndef EAI_AGAIN
  19. #define EAI_AGAIN 2 /* temporary failure in name resolution */
  20. #endif
  21. #ifndef EAI_BADFLAGS
  22. #define EAI_BADFLAGS 3 /* invalid value for ai_flags */
  23. #endif
  24. #endif // _ESP_PLATFORM_ERRNO_H_