Mail Archives: cygwin/2010/04/27/09:58:55
--------------enigBDDAB1EDB7ADCFDAFFEA6652
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On 04/27/2010 03:05 AM, Corinna Vinschen wrote:
> Like this? We are already using analog definitions in the socket header
> files.
Yes, that looks right.
>=20
> Index: include/cygwin/signal.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/signal.h,v
> retrieving revision 1.18
> diff -u -p -r1.18 signal.h
> --- include/cygwin/signal.h 26 Feb 2010 05:43:50 -0000 1.18
> +++ include/cygwin/signal.h 27 Apr 2010 07:23:05 -0000
> @@ -194,14 +194,16 @@ typedef void (*_sig_func_ptr)(int);
>=20=20
> struct sigaction
> {
> - __extension__ union
> + union
> {
> _sig_func_ptr sa_handler; /* SIG_DFL, SIG_IGN, or pointer to a fu=
nction */
> void (*sa_sigaction) ( int, siginfo_t *, void * );
> - };
> + } __sighandler_or_action;
> sigset_t sa_mask;
> int sa_flags;
> };
> +#define sa_handler __sighandler_or_action.sa_handler
> +#define sa_sigaction __sighandler_or_action.sa_sigaction
And while we're touching the file, we probably want to do similar
treatment for struct siginfo_t: si_tid, si_overrun, si_sigval, si_value,
si_status, si_utime, si_stime, and si_addr.
--=20
Eric Blake eblake AT redhat DOT com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
--------------enigBDDAB1EDB7ADCFDAFFEA6652
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEbBAEBCAAGBQJL1u2PAAoJEKeha0olJ0Nq4o0H+OW0G8rrC7lKxyqadlN5icjh
I8OzOHLz8MpDkiNPROsQy821BjAOE5Qr9rbzCktg4d0ClC8ibg2OeGB4NTu2aohA
Lmq8TaGfg4YzzkjgYiQDFMv0WCQ3Gt4lNynaLqUuxXFvw2CLgQby1/EQSnTAFQvP
Il6fGF/xK90yC2dsuGCU+tk7BliRHJlgBQz69+04pYqT9wmQdF8pNrBeQLFiUcls
HSKSnlEqNAbVhmW79zVA8PVFkwZTpr51aJVqjne481Xxn41mQRRVTN3fyJPnHeRf
q/0rJRAbmA797U4D6XmsKL7K+cc6xZcaseg0EGTk2jxxMgmYv9YMOgRQbe+Nyg==
=MQMM
-----END PGP SIGNATURE-----
--------------enigBDDAB1EDB7ADCFDAFFEA6652--
- Raw text -