From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 19 06:04:29 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14D2537B401 for ; Thu, 19 Jun 2003 06:04:29 -0700 (PDT) Received: from genua.rfc-networks.ie (genua.rfc-networks.ie [62.77.182.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52DF143F85 for ; Thu, 19 Jun 2003 06:04:28 -0700 (PDT) (envelope-from philip.reynolds@rfc-networks.ie) Received: from tear.domain (unknown [10.0.1.254]) by genua.rfc-networks.ie (Postfix) with ESMTP id C5203548AD for ; Thu, 19 Jun 2003 14:04:26 +0100 (IST) Received: by tear.domain (Postfix, from userid 1000) id B19BF21150; Thu, 19 Jun 2003 13:04:26 +0000 (GMT) Date: Thu, 19 Jun 2003 13:04:26 +0000 From: Philip Reynolds To: freebsd-hackers@freebsd.org Message-ID: <20030619130426.GB69532@rfc-networks.ie> References: <20030618162547.GA91861@fling-wing.demos.su> <200306190856.h5J8ufPJ002065@peedub.jennejohn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306190856.h5J8ufPJ002065@peedub.jennejohn.org> X-Operating-System: FreeBSD 4.7-STABLE X-URL: http://www.rfc-networks.ie Subject: Re: struct ipc_perm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: philip.reynolds@rfc-networks.ie List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 13:04:29 -0000 Gary Jennejohn 38 lines of wisdom included: > > Dmitry Sivachenko writes: > > Any ideas? > > > > The usual way to handle this sort of change is to put any new structure > elements at the end so that existing applications don't get confused. > They simply aren't aware the new elements were added. > > Of course, this can cause problems when the kernel does a copyout() > using the new size but the application passed a pointer to > storage which can only hold the old, smaller structure. Yeh, recompiling any applications using it, should work. They'll pick up the sizeof() the modified struct. -- Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil | www.rfc-networks.ie