git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add a local implementation of hstrerror for the system which do not have it

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jun 18, 2007, 21:53 UTC
Message-ID
<4676FED4.70905@nrlssc.navy.mil>
In-Reply-To
<20070618213749.GB16397@steel.home>
Alex Riesen wrote:
Show 16 quoted lines
> Brandon Casey, Mon, Jun 18, 2007 23:28:10 +0200:
>> Alex Riesen wrote:
>>> The function converts the value of h_errno (last error of name
>>> resolver library, see netdb.h). One of systems which supposedly do
>>> not have the function is SunOS. POSIX does not mandate its presence.
>> I saw a comment on another mailing list that hstrerror() is in the
>> resolv library.
>>
>>    So adding -lresolv should do it.
>>
>> A quick compile works for my test program.
>>
> 
> Ah-ha. Good to know, thanks!
> 
> Still, the patch is correct: no need for hstrerror there.
I see, right, just the NO_IPV6 case.
-brandon
Previous: Alex RiesenNext: Alex Riesen
Message 9 of 11 in “[BUG] 75d8ff1 fails on SunOS 5.9 (missing hsterror) from ba505322”
  1. Randal L. SchwartzJun 12, 2007
  2. Alex RiesenJun 12, 2007
  3. Do not use h_errno after connect(2): the function does not set itAlex Riesen, Jun 12, 2007
  4. Add a local implementation of hstrerror for the system which do not have itAlex Riesen, Jun 12, 2007
  5. Johannes SixtJun 13, 2007
  6. Brandon CaseyJun 18, 2007
  7. Brandon CaseyJun 18, 2007
  8. Alex RiesenJun 18, 2007
  9. Brandon CaseyJun 18, 2007
  10. Add a local implementation of hstrerror for the system which do not have itAlex Riesen, Jun 13, 2007
  11. Randal L. SchwartzJun 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.