This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: problem in aio_notify.c in glibc 2.1.92?
- To: kaz at ashi dot footprints dot net
- Subject: Re: problem in aio_notify.c in glibc 2.1.92?
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Tue, 15 Aug 2000 02:08:10 -0700
- CC: khendricks at ivey dot uwo dot ca, libc-alpha at sourceware dot cygnus dot com
- References: <Pine.LNX.4.10.10008142321530.3927-100000@ashi.FootPrints.net>
> Date: Mon, 14 Aug 2000 23:39:05 -0700 (PDT)
> From: Kaz Kylheku <kaz@ashi.footprints.net>
> Note that the target callback receives a parameter of type sigval_t,
> which is a union, and returns void. Whereas a proper thread
> function used by pthread create has type void *(void *).
> The motivation for the trick is understandable, since it eliminates
> the need for a bounce function to be passed to pthread create which
> would process the argument. Maybe the type system abuse is not
> working on the PPC target of the compiler version you are using?
Indeed this is the problem. The SVR4 ABI specifies that structure and
union arguments are passed by passing a pointer to a copy of the
structure. So this trick will not work on powerpc.
--
- Geoffrey Keating <geoffk@cygnus.com>