From owner-freebsd-stable@FreeBSD.ORG Wed Oct 17 10:39:21 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4808D16A418; Wed, 17 Oct 2007 10:39:21 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id C600413C465; Wed, 17 Oct 2007 10:39:20 +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.14.1/8.14.1) with ESMTP id l9HAdJSL036303; Wed, 17 Oct 2007 20:39:19 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l9HAdIg7036302; Wed, 17 Oct 2007 20:39:18 +1000 (EST) (envelope-from peter) Date: Wed, 17 Oct 2007 20:39:18 +1000 From: Peter Jeremy To: Igor Sysoev Message-ID: <20071017103918.GL1191@turion.vk2pj.dyndns.org> References: <20071015141714.GL24828@rambler-co.ru> <20071016193843.GD1184@turion.vk2pj.dyndns.org> <20071016195343.GK57989@rambler-co.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline In-Reply-To: <20071016195343.GK57989@rambler-co.ru> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 2G+ sysv shm segments X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 10:39:21 -0000 --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Oct-16 23:53:43 +0400, Igor Sysoev wrote: >> printf(" %12lu", (unsigned long)kshmptr->u.shm_segsz); or similar. > >Here should be %zu. You're correct. I wasn't aware of 'z' :-( >However, this patch can not be commited even to 7/8, because it does not >preserve binary compatibility for shmctl(IPC_STAT). > >It seems that should be new shmctl syscall. I don't believe there is a requirement that IPC_STAT be 2 so an alternative approach would be to change the value of IPC_STAT to support the changed shmid_ds size (though this would also affect semctl() and msgctl(). --=20 Peter Jeremy --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHFeZW/opHv/APuIcRAhHCAJ4vJqrDYTci2LCscBjOd/IlOGaVLwCfawHH GoGATHrPINrWuxDizB68/Os= =YzjB -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ--