From owner-freebsd-ports Thu Jan 9 13:03:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA21290 for ports-outgoing; Thu, 9 Jan 1997 13:03:33 -0800 (PST) Received: from po1.glue.umd.edu (root@po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA21285 for ; Thu, 9 Jan 1997 13:03:29 -0800 (PST) Received: from thurston.eng.umd.edu (thurston.eng.umd.edu [129.2.103.25]) by po1.glue.umd.edu (8.8.3/8.7.3) with ESMTP id QAA08643; Thu, 9 Jan 1997 16:03:26 -0500 (EST) Received: from localhost (chuckr@localhost) by thurston.eng.umd.edu (8.8.3/8.7.3) with SMTP id QAA05899; Thu, 9 Jan 1997 16:03:25 -0500 (EST) X-Authentication-Warning: thurston.eng.umd.edu: chuckr owned process doing -bs Date: Thu, 9 Jan 1997 16:03:24 -0500 (EST) From: Chuck Robey X-Sender: chuckr@thurston.eng.umd.edu To: Warner Losh cc: ports@freebsd.org Subject: Re: Niklas Hallqvist: archivers/hpack.non-usa.only In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 9 Jan 1997, Warner Losh wrote: > In message 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! ----------------------------+-----------------------------------------------