qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] siginfo fix for Darwin/Mac OS X on PowerPC and


From: Pierre d'Herbemont
Subject: Re: [Qemu-devel] [PATCH] siginfo fix for Darwin/Mac OS X on PowerPC and cleanup
Date: Fri, 19 Jan 2007 00:15:47 +0100


On 18 janv. 07, at 23:57, Thiemo Seufer wrote:


It might be better to keep the full set around for documentation.

It's a good point.

-int cpu_signal_handler(int host_signum, struct siginfo *info,
+int cpu_signal_handler(int host_signum, struct siginfo *pinfo,
                        void *puc)
 {
     struct ucontext *uc = puc;
+    siginfo_t *info = pinfo;
     unsigned long pc;
     int is_write;

Why does this make a difference?

struct siginfo is not defined on darwin. (it works because struct siginfo is defined also as an anonymous structure in qemu header)

But after re-thinking, my patch is rather unelegant. I think we should definitely use a void * type for info, rather than using the anonymous struct siginfo trick. Any thought?

Pierre.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]