Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2003 13:04:26 +0000
From:      Philip Reynolds <philip.reynolds@rfc-networks.ie>
To:        freebsd-hackers@freebsd.org
Subject:   Re: struct ipc_perm
Message-ID:  <20030619130426.GB69532@rfc-networks.ie>
In-Reply-To: <200306190856.h5J8ufPJ002065@peedub.jennejohn.org>
References:  <20030618162547.GA91861@fling-wing.demos.su> <200306190856.h5J8ufPJ002065@peedub.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Jennejohn <garyj@jennejohn.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030619130426.GB69532>