Re: Re: UUNET socket-file-location patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: UUNET socket-file-location patch
Date: 2000-11-13 21:36:19
Message-ID: 200011132136.QAA08113@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

OK, hterror removed.

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Larry Rosenman 2000-11-13 22:12:06 Re: pgsql/src/backend/libpq (pqcomm.c)
Previous Message momjian 2000-11-13 21:35:03 pgsql/src/backend/utils/error (elog.c)

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2000-11-13 22:06:54 Re: Syslog Facility Patch
Previous Message Bruce Momjian 2000-11-13 21:34:58 Re: Syslog Facility Patch