Re: Re: UUNET socket-file-location patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: UUNET socket-file-location patch
Дата
Msg-id 14709.974150966@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: UUNET socket-file-location patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Re: UUNET socket-file-location patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: UUNET socket-file-location patch
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Syslog Facility Patch