From owner-freebsd-arch Wed Oct 16 10:39: 3 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F32B737B401 for ; Wed, 16 Oct 2002 10:39:01 -0700 (PDT) Received: from web11205.mail.yahoo.com (web11205.mail.yahoo.com [216.136.131.187]) by mx1.FreeBSD.org (Postfix) with SMTP id A3F7943E3B for ; Wed, 16 Oct 2002 10:39:01 -0700 (PDT) (envelope-from gathorpe79@yahoo.com) Message-ID: <20021016173858.98439.qmail@web11205.mail.yahoo.com> Received: from [149.99.112.16] by web11205.mail.yahoo.com via HTTP; Wed, 16 Oct 2002 13:38:58 EDT Date: Wed, 16 Oct 2002 13:38:58 -0400 (EDT) From: Gary Thorpe Subject: Re: short uid/gid To: Terry Lambert Cc: freebsd-arch@freebsd.org In-Reply-To: <3DACEC96.D307070A@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am not aware of the latest ISO C standards, but I believe things like 'int' and 'long' are not defined in their lengths, but the minimum values they can represent: 'int' has to be able to do -65536 to +65536 approximately and long has to be able to do -2 billion to +2 billon approximately. On gcc x86, a 'long' may in fact be the same lentgh as an 'int'. The only types in C that *may* have their lengths defined are 'char' (8-bit value) and 'wchar' (16-bit value) as far as I know. I believe Java has the strict length interpritations. Has this changed with the latest C standards (and was it ever true in the first place)? --- Terry Lambert wrote: > "Danny J. Zerkel" wrote: > > At least for our Linux emulation layer, supporting IPC_64 would be > one > > of the pieces (probably the main one) keeping The Sims from > running. > > The other thing we are missing is the Linux ioctl() interface for > reading > > MSDOSFS directories, but that may be optional. > > > > I will eventually take a look at this (IPC_64) if the scheduling > fairy brings > > me the time. > > Basically, they convert a lot of short fields to what the manual > page calls "longs", but which are actually 32 bit values; makes > you wonder where they obtained the name "IPC_64", when it should > probably more properly be "IPC_32". > > They pad it out to 36 bytes by adding two unsigned long fields > (32 bit longs); gotta wonder why they didn't stop at 32 bytes... > > -- Terry > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message