summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/gai_strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/gai_strerror.c')
-rw-r--r--src/lib/libc/net/gai_strerror.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/libc/net/gai_strerror.c b/src/lib/libc/net/gai_strerror.c
index c701c8f422..708fb23d18 100644
--- a/src/lib/libc/net/gai_strerror.c
+++ b/src/lib/libc/net/gai_strerror.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: gai_strerror.c,v 1.4 1999/12/30 08:54:20 itojun Exp $ */
2
1/* 3/*
2 * %%% copyright-cmetz-97-bsd 4 * %%% copyright-cmetz-97-bsd
3 * Copyright (c) 1997-1999, Craig Metz, All rights reserved. 5 * Copyright (c) 1997-1999, Craig Metz, All rights reserved.
@@ -65,6 +67,10 @@ gai_strerror(int errnum)
65 return "memory allocation failure"; 67 return "memory allocation failure";
66 case EAI_SYSTEM: 68 case EAI_SYSTEM:
67 return "system error"; 69 return "system error";
70 case EAI_BADHINTS:
71 return "invalid value for hints";
72 case EAI_PROTOCOL:
73 return "resolved protocol is unknown";
68 default: 74 default:
69 return "unknown/invalid error"; 75 return "unknown/invalid error";
70 } 76 }