Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-15 Thread Bruce Momjian
Giles Lean wrote: > > Tom Lane wrote: > > > I suppose that at least some of the *BSD herd really do predefine some > > of the symbols being attributed to them here, but I would like to see > > something authoritative about which and what. > > Documentation follows, but first the summary: > > F

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-15 Thread Bruce Momjian
Tom Lane wrote: > I'm not even too sure what "bsdi" is, but I'm suspicious of that branch > too. A search of our code finds > > contrib/pg_upgrade/file.c: 248: #elif defined(freebsd) || defined(bsdi) || > defined(__darwin__) || defined(openbsd) > src/backend/utils/misc/ps_status.c: 67: #elif (de

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-15 Thread Andrew Dunstan
Bruce Momjian wrote: Peter Eisentraut wrote: On l?r, 2010-05-15 at 00:23 -0400, Robert Haas wrote: It's a commercial distribution of BSD. I remember it being pretty nice when I used it 10+ years ago, but it sounds like it's dead now. BSDI is the company that produced BSD/OS,

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-15 Thread Bruce Momjian
Peter Eisentraut wrote: > On l?r, 2010-05-15 at 00:23 -0400, Robert Haas wrote: > > It's a commercial distribution of BSD. I remember it being pretty > > nice when I used it 10+ years ago, but it sounds like it's dead now. > > BSDI is the company that produced BSD/OS, which was Bruce's main > dev

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-15 Thread Giles Lean
Tom Lane wrote: > I suppose that at least some of the *BSD herd really do predefine some > of the symbols being attributed to them here, but I would like to see > something authoritative about which and what. Documentation follows, but first the summary: FreeBSD: __FreeBSD__ NetBSD: __NetBSD_

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Peter Eisentraut
On lör, 2010-05-15 at 00:23 -0400, Robert Haas wrote: > It's a commercial distribution of BSD. I remember it being pretty > nice when I used it 10+ years ago, but it sounds like it's dead now. BSDI is the company that produced BSD/OS, which was Bruce's main development environment at some point,

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Peter Eisentraut
On lör, 2010-05-15 at 00:15 -0400, Tom Lane wrote: > I suppose that at least some of the *BSD herd really do predefine some > of the symbols being attributed to them here, but I would like to see > something authoritative about which and what. http://www.freebsd.org/doc/en_US.ISO8859-1/books/porte

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Robert Haas
On Sat, May 15, 2010 at 12:37 AM, Tom Lane wrote: > Robert Haas writes: >> On Sat, May 15, 2010 at 12:15 AM, Tom Lane wrote: >>> I'm not even too sure what "bsdi" is, but I'm suspicious of that branch >>> too.  A search of our code finds > >> It's a commercial distribution of BSD.  I remember it

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Tom Lane
Robert Haas writes: > On Sat, May 15, 2010 at 12:15 AM, Tom Lane wrote: >> I'm not even too sure what "bsdi" is, but I'm suspicious of that branch >> too.  A search of our code finds > It's a commercial distribution of BSD. I remember it being pretty > nice when I used it 10+ years ago, but it

Re: [HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Robert Haas
On Sat, May 15, 2010 at 12:15 AM, Tom Lane wrote: > I'm not even too sure what "bsdi" is, but I'm suspicious of that branch > too.  A search of our code finds It's a commercial distribution of BSD. I remember it being pretty nice when I used it 10+ years ago, but it sounds like it's dead now. To

[HACKERS] predefined macros for various BSD-based systems?

2010-05-14 Thread Tom Lane
The recently added contrib/pg_upgrade code contains this bit: /* * scandir() is originally from BSD 4.3, which had the third argument as * non-const. Linux and other C libraries have updated it to use a const. * http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2005-12/