From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 31 09:16:59 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3EF916A400 for ; Wed, 31 Jan 2007 09:16:59 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 5A9B013C4A6 for ; Wed, 31 Jan 2007 09:16:58 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0V8q6Oa006345; Wed, 31 Jan 2007 19:52:06 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0V8q6Br006344; Wed, 31 Jan 2007 19:52:06 +1100 (EST) (envelope-from peter) Date: Wed, 31 Jan 2007 19:52:06 +1100 From: Peter Jeremy To: Pascal Hofstee Message-ID: <20070131085206.GW892@turion.vk2pj.dyndns.org> References: <45C04593.2090704@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/8E7gjuj425jZz9t" Content-Disposition: inline In-Reply-To: <45C04593.2090704@gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: hackers@freebsd.org Subject: Re: a question regarding X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 09:16:59 -0000 --/8E7gjuj425jZz9t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2007-Jan-31 08:30:27 +0100, Pascal Hofstee wrote: >In a recent attempt in trying to clean up some compiler warnings in a=20 >GNUstep related project i came upon a case where the FreeBSD datatypes=20 >seemed to disagree with the Linux ones. Though this in itself is not=20 >unusual i do wonder if in this case the Linux definition isn't the more=20 >proper one. > >The definition in question is inside and involves >struct shmid_ds.shm_segsz which seems to be defined as "int" whereas=20 >Linux defines this as "size_t". Whilst I agree that the Linux defn is the more sensible one, System V IPC and common sense are not commonly found together. Tradionally the definition was "int". It appears that the definition changed from "int" to "size_t" in issue 5 of the Open Group base definition but FreeBSD has not caught up with this. I'm not sure what plans there are to change this. You could try putting together a patch to address this and submitting it as a PR (this means addressing all references to shm_segsz in the base system, not just ). --=20 Peter Jeremy --/8E7gjuj425jZz9t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFwFi2/opHv/APuIcRAhnsAJ9smPx1OTEMTarJX37PNoylkebjjACcCwxL 3T3EZBnnZcSiaHT3pnzyvXU= =uLxS -----END PGP SIGNATURE----- --/8E7gjuj425jZz9t--