Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 1997 16:03:24 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Warner Losh <imp@village.org>
Cc:        ports@freebsd.org
Subject:   Re: Niklas Hallqvist: archivers/hpack.non-usa.only 
Message-ID:  <Pine.OSF.3.95.970109160201.5886A-100000@thurston.eng.umd.edu>
In-Reply-To: <E0viODS-0005Ep-00@rover.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Jan 1997, Warner Losh wrote:

> In message <Pine.OSF.3.95.970109120824.7826A-100000@packet.eng.umd.edu> Chuck Robey writes:
> : I don't know ... does sys/param.h exist on _every_ last system that has
> : unix or __unix__ defined?  If not, the code above is a fatal error, and no
> : good.  If it's guaranteed true, it's fine, and I'd use it.
> 
> It does seem to exist on almost every unix system today.  I'm in the
> process of looking for examples that aren't true.  I'd say that at
> least 99.999% of all systems that define unix or __unix__ have
> sys/param.h based on my porting experiences.
> 
> The Lions book, for example, has a file called unix/param.h, which
> matches closely the stuff found in sys/param.h, kinda sorta.  So there
> is precidence for this sort of stuff going back a long ways (to V6,
> for those that don't know the Lions book).
> 
> : Can you make that guarantee?  If not, did you see the thing about using
> : .if exists ?
> 
> Nearly.  And it would be easy to add exception code for those few
> systems that it doesn't exist on, if any.  Almost nobody else in the
> unix world has bmake on their system, so that solution is much less
> portible by quite a bit.

If that's true, then I _like_ it a lot!  We've needed a standard method of
deciding whether to include param.h for a long time.  If Satoshi agrees
with this method too, we oughta enshrine it in the porting section of the
handbook.

> 
> Warner
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
9120 Edmonston Ct #302      |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.970109160201.5886A-100000>