Re: Re: UUNET socket-file-location patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: UUNET socket-file-location patch
Date
Msg-id 14709.974150966@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: UUNET socket-file-location patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: UUNET socket-file-location patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> On BSDI, hstrerror is defined in netdb.h.  Do you have it anywhere?  Is
> that a proper function call?

There is no hstrerror anywhere on HPUX.  h_errno is defined in
<netdb.h>, but only with nonstandard compilation options:

#ifdef _XOPEN_SOURCE_EXTENDED
extern int h_errno;
#endif

The man page for gethostbyname() points out that h_errno will be garbage
if the hostname was not resolved via a nameserver, anyway.

On the whole, this code looks much less than portable to me.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: UUNET socket-file-location patch
Next
From: Bruce Momjian
Date:
Subject: Re: Syslog Facility Patch