qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] syscall_target_errno.patch


From: Thayne Harbaugh
Subject: [Qemu-devel] [PATCH] syscall_target_errno.patch
Date: Wed, 10 Oct 2007 21:38:08 -0600

I appreciate the work that Jocelyn did to correct the types used
throughout linux-user/syscall.c.  Along those same lines I am working on
several patches to eliminate some incorrect constructs that have crept
into syscall.c - some of which I have ignorantly propagated in previous
patches that I have submitted.

I have noticed that many functions in syscall.c return a *host* errno
when a *target* errno should be return.  At the same time, there are
several places in syscall.c:do_syscall() that immediately return an
errno rather than setting the return value and exiting through the
syscall return value reporting at the end of do_syscall().

This patch addresses both of those problems at once rather than touching
the exact same errno return lines twice in do_syscall().  It also
touches a few functions in linux-user/signal.c that are called from
do_syscall().

Please send comments - I have several more patches that will build on
this one as well as a few more patches that will fix other incorrect
constructs with target/host address handling.

Thanks.

Attachment: 03_syscall_target_errno.patch
Description: Text Data


reply via email to

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