Subject: Re: SA_SIGINFO notes
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 10/13/2003 09:50:12
--76DTJ5CE0DCVQemd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 12, 2003 at 12:24:55AM +0200, Paul Kranenburg wrote:
> btw. would it be Ok on signal delivery, to just copy the actually used
> portion of siginfo_t (i.e. what's currently ksiginfo_t) to the signal
> handler's stack instead of all of the 128 "future expansion" bytes?

The kernel does this, yes? Then it should be fine to just zero the rest.

> I can only see potential confusion if a program that's compiled using
> a future version of siginfo.h is run on an older kernel, which would
> be something that's inadvisable anyway.

If you zero the rest (set to known value :-) then programs should be ok.=20
Though in general we don't support running programs on kernels older than=
=20
the userland they were built for.

Take care,

Bill

--76DTJ5CE0DCVQemd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/itfEWz+3JHUci9cRAi7kAJ9ewN1zqzQ1uy5k0lGsGmm9PkpdPgCeP03f
fJQNn0nZFSioxKZdpXqsEM4=
=cqU6
-----END PGP SIGNATURE-----

--76DTJ5CE0DCVQemd--