Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
539 bytes
|
Rev | Line | |
---|
[398] | 1 | #include <netdb.h>
|
---|
| 2 | #include "locale_impl.h"
|
---|
| 3 |
|
---|
| 4 | static const char msgs[] =
|
---|
| 5 | "Invalid flags\0"
|
---|
| 6 | "Name does not resolve\0"
|
---|
| 7 | "Try again\0"
|
---|
| 8 | "Non-recoverable error\0"
|
---|
| 9 | "Unknown error\0"
|
---|
| 10 | "Unrecognized address family or invalid length\0"
|
---|
| 11 | "Unrecognized socket type\0"
|
---|
| 12 | "Unrecognized service\0"
|
---|
| 13 | "Unknown error\0"
|
---|
| 14 | "Out of memory\0"
|
---|
| 15 | "System error\0"
|
---|
| 16 | "Overflow\0"
|
---|
| 17 | "\0Unknown error";
|
---|
| 18 |
|
---|
| 19 | const char *gai_strerror(int ecode)
|
---|
| 20 | {
|
---|
| 21 | const char *s;
|
---|
| 22 | for (s=msgs, ecode++; ecode && *s; ecode++, s++) for (; *s; s++);
|
---|
| 23 | if (!*s) s++;
|
---|
| 24 | return LCTRANS_CUR(s);
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.