diff options
| author | jasper <> | 2009-06-02 16:47:50 +0000 |
|---|---|---|
| committer | jasper <> | 2009-06-02 16:47:50 +0000 |
| commit | 43170abfbd0c2858c372e7ef19f5dffe4f34137c (patch) | |
| tree | 1b205aa1de88b51de0a7b8ebaaa0c384de59b93f /src/lib/libc/net/gai_strerror.c | |
| parent | 5053d5dfc677c79d11cbcefc36e845b771ce77ce (diff) | |
| download | openbsd-43170abfbd0c2858c372e7ef19f5dffe4f34137c.tar.gz openbsd-43170abfbd0c2858c372e7ef19f5dffe4f34137c.tar.bz2 openbsd-43170abfbd0c2858c372e7ef19f5dffe4f34137c.zip | |
- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)
hint from claudio@, ok millert@
Diffstat (limited to 'src/lib/libc/net/gai_strerror.c')
| -rw-r--r-- | src/lib/libc/net/gai_strerror.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/gai_strerror.c b/src/lib/libc/net/gai_strerror.c index 767bc2f7e8..f4126413f8 100644 --- a/src/lib/libc/net/gai_strerror.c +++ b/src/lib/libc/net/gai_strerror.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gai_strerror.c,v 1.6 2004/12/20 22:35:32 millert Exp $ */ | 1 | /* $OpenBSD: gai_strerror.c,v 1.7 2009/06/02 16:47:50 jasper Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1997-1999, Craig Metz, All rights reserved. | 4 | * Copyright (c) 1997-1999, Craig Metz, All rights reserved. |
| @@ -70,6 +70,8 @@ gai_strerror(int errnum) | |||
| 70 | return "invalid value for hints"; | 70 | return "invalid value for hints"; |
| 71 | case EAI_PROTOCOL: | 71 | case EAI_PROTOCOL: |
| 72 | return "resolved protocol is unknown"; | 72 | return "resolved protocol is unknown"; |
| 73 | case EAI_OVERFLOW: | ||
| 74 | return "argument buffer overflow"; | ||
| 73 | default: | 75 | default: |
| 74 | return "unknown/invalid error"; | 76 | return "unknown/invalid error"; |
| 75 | } | 77 | } |
