🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.alt.comm.mgetty
Article #7

Re: distinguish solaris 1 (SunOS 4) from solaris 2.x?

#7
From: Casper H.S. Dik
Date: Fri, 10 Jun 1994 11:06
17 lines
1817 bytes
gert@greenie.muc.de (Gert Doering) writes:

>I think that's a major design error from sun - no way to determine the
>exact type of machine by C preprocessor statements.

It's the compiler vendors that determine which predefined symbols
will be present.  The latest Sun compilers define __SVR4.

However, I believe that using the system type to determine which features
to select wrong.  The method you should use should be like GNU's
autoconf.  For each feature you want, use a feature test macro.
This also gives users the flexibility to determine whether to use
terminfo or termcap (when both are present), instead of being forced
to use termcap because that's what the implementer though you
should use on SunOS 4.

Casper
Technical Details
Message-ID: <2t9hf1$sc3@mail.fwi.uva.nl>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!cs.utexas.edu!swrinde!pipex!sunic!EU.net!sun4nl!fwi.uva.nl!casper
References: <m0q9bZM-0002NPC@greenie.muc.de> <FDC.94Jun4112458@cliwe.uucp> <1994Jun7.192234.11742@chemabs.uucp> <Cr4EwE.q@greenie.muc.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6653,c90ac97a442d5221
X-Google-Attributes: gidf6653,public
X-Google-Thread: f52a0,c90ac97a442d5221
X-Google-Attributes: gidf52a0,public
X-Google-Thread: 1025b4,c90ac97a442d5221
X-Google-Attributes: gid1025b4,public
X-Google-Thread: 11035d,c90ac97a442d5221
X-Google-Attributes: gid11035d,public
X-Google-ArrivalTime: 1994-06-10 04:07:27 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!cs.utexas.edu!swrinde!pipex!sunic!EU.net!sun4nl!fwi.uva.nl!casper
From: casper@fwi.uva.nl (Casper H.S. Dik)
Newsgroups: de.alt.comm.mgetty,comp.unix.solaris,comp.sys.sun.misc,gnu.misc.discuss
Subject: Re: distinguish solaris 1 (SunOS 4) from solaris 2.x?
Date: 10 Jun 1994 11:06:09 GMT
Organization: FWI, University of Amsterdam
Lines: 17
Distribution: world
Message-ID: <2t9hf1$sc3@mail.fwi.uva.nl>
References: <m0q9bZM-0002NPC@greenie.muc.de> <FDC.94Jun4112458@cliwe.uucp> <1994Jun7.192234.11742@chemabs.uucp> <Cr4EwE.q@greenie.muc.de>
NNTP-Posting-Host: adam.fwi.uva.nl