From owner-freebsd-hackers Fri Nov 24 18:11:35 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA11845 for hackers-outgoing; Fri, 24 Nov 1995 18:11:35 -0800 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id SAA11836 for ; Fri, 24 Nov 1995 18:11:32 -0800 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA15232 (5.67a/IDA-1.5 for hackers@freebsd.org); Fri, 24 Nov 1995 19:56:56 -0600 Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.9) id SAA25262 for hackers@freebsd.org; Fri, 24 Nov 1995 18:39:32 -0600 From: peter@taronga.com (Peter da Silva) Message-Id: <199511250039.SAA25262@bonkers.taronga.com> Subject: Re: How long is long? To: hackers@freebsd.org Date: Fri, 24 Nov 1995 18:39:32 -0600 (CST) In-Reply-To: <199511241905.MAA10078@phaeton.artisoft.com> from "Terry Lambert" at Nov 24, 95 12:05:45 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 874 Sender: owner-hackers@freebsd.org Precedence: bulk > The size of long shall be greater than or equal to the sizeof int. Your > 128 says "greater than" and ignores "equal to". That's fine. I believe that the standard is overcautious. I believe that the original use of 32 bit longs in 3BSD was a mistake. > My complaint is about the long >= int requirement on longs. Yep. Should be "long > int". > > Long doesn't and shouldn't mean "32 bits". > Maybe not. But *something* should mean "32 bits". Whatever means "32 bits" should have the number "32" or the number "4" in its name. That is, if you need a 32 bit value *specifically* then you should use a native or derived type called "int32" or something similar. > What about existing on-disk data? Bailey Network Management uses derived types for all external data structures. I authored the coding standard. It is a fundamental error to depend on implied sizes.