| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера