From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12565 invoked from network); 2 Feb 2021 23:09:08 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2021 23:09:08 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 125849C20B; Wed, 3 Feb 2021 09:09:07 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 41FED9BA40; Wed, 3 Feb 2021 09:08:46 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B5F1A9BA40; Wed, 3 Feb 2021 09:08:44 +1000 (AEST) Received: from central.weird.com (unknown [198.96.117.51]) by minnie.tuhs.org (Postfix) with ESMTP id E2ECB9BA3F for ; Wed, 3 Feb 2021 09:08:43 +1000 (AEST) Received: from (invalid client hostname: bind: DNS error: DNS lookup for A for 'more.local': Unknown host)more.local ((no PTR matching greeting name)d207-6-82-137.bchsia.telus.net[207.6.82.137] port=56869) by central.weird.com([198.96.117.51] port=587) via TCP with esmtp (4010 bytes) (sender: ) (ident using UNIX) id for ; Tue, 2 Feb 2021 18:08:43 -0500 (EST) (Smail-3.2.0.122-Pre 2005-Nov-17 #78 built 2020-Mar-25) Received: from (invalid client hostname: the DNS A record (with the targegt address [10.0.1.129]) for the hostname 'more.local' does not match the expected address [10.0.1.129])more.local ((no PTR matching greeting name)xentastic.local[10.0.1.140] port=64852) by more.local([10.0.1.129] port=25) via TCP with esmtp (3505 bytes) (sender: ) id for ; Tue, 2 Feb 2021 15:08:42 -0800 (PST) (Smail-3.2.0.122-Pre 2005-Nov-17 #1 built 2015-Feb-17) Message-Id: Date: Tue, 02 Feb 2021 15:08:42 -0800 From: "Greg A. Woods" To: The Unix Heritage Society mailing list In-Reply-To: References: <202009190151.08J1pYnb066792@tahoe.cs.dartmouth.edu> <202009201842.08KIgn2f022401@freefriends.org> <04211470-AD63-452A-A0BB-6A7A6FD85AAE@gmail.com> <202009202026.08KKQ2x6137303@tahoe.cs.dartmouth.edu> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64--netbsd) MULE/6.0 (HANACHIRUSATO) X-Face: ; j3Eth2XV8h1Yfu*uL{<:dQ$#E[DB0gemGZJ"J#4fH*][ lz; @-iwMv_u\6uIEKR0KY"=MzoQH#CrqBN`nG_5B@rrM8,f~Gr&h5a\= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --pgp-sign-Multipart_Tue_Feb__2_15:08:34_2021-1 Content-Type: text/plain; charset=US-ASCII At Sun, 20 Sep 2020 17:35:52 -0400, John Cowan wrote: Subject: Re: [TUHS] reviving a bit of WWB > > When 0 is coerced implicitly or explicitly to a pointer type, it becomes a > null pointer. That's true even on architectures where all-bits-zero is > *not* a null pointer. However, in contexts where there is no expected > type, as in a call to execl(), the null at the end of the args list has to > be explicitly cast to (char *)0 or some other null pointer. Yeah, that's more to do with the good/bad choice in C to do or not do integer promotion in various situations, and to default parameter types to 'int' unless they are, or are cast to, a wider type (and of course with the rather tricky and almost non-portable way C allows variable length argument lists, along with the somewhat poor way C was cajoled into offering function prototypes to support separate compilation of code units and the exceedingly poor way prototypes deal with variable length argument lists). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms --pgp-sign-Multipart_Tue_Feb__2_15:08:34_2021-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQTWEnAIIlcZX4oAawJie18UwlnHhQUCYBnbdQAKCRBie18UwlnH hZhLAJ9TGjUXIjCFuZKv7sZoCmlTW5E+wgCgtFkCm3jGHzOxzqDVS3D/Uf5wz4E= =psp7 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Feb__2_15:08:34_2021-1--