From patchwork Sat Dec 19 23:17:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 41482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 50E0AB6EE8 for ; Sun, 20 Dec 2009 10:29:57 +1100 (EST) Received: from localhost ([127.0.0.1]:40931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NM8kE-0002XE-0w for incoming@patchwork.ozlabs.org; Sat, 19 Dec 2009 18:29:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NM8jb-0002WA-6n for qemu-devel@nongnu.org; Sat, 19 Dec 2009 18:29:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NM8jZ-0002V9-UF for qemu-devel@nongnu.org; Sat, 19 Dec 2009 18:29:14 -0500 Received: from [199.232.76.173] (port=39847 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NM8jZ-0002Ux-Q7 for qemu-devel@nongnu.org; Sat, 19 Dec 2009 18:29:13 -0500 Received: from are.twiddle.net ([75.149.56.221]:39305) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NM8jZ-0002ul-Ha for qemu-devel@nongnu.org; Sat, 19 Dec 2009 18:29:13 -0500 Received: by are.twiddle.net (Postfix, from userid 5000) id E147A8DD; Sat, 19 Dec 2009 15:29:12 -0800 (PST) Message-Id: <48edf69041f2aae60f1e22163c4d35fdb93bea18.1261264754.git.rth@twiddle.net> In-Reply-To: <2d2f4a285db07da0e453535318a463573c5397d4.1261264754.git.rth@twiddle.net> References: <2d2f4a285db07da0e453535318a463573c5397d4.1261264754.git.rth@twiddle.net> From: Richard Henderson Date: Sat, 19 Dec 2009 15:17:15 -0800 To: qemu-devel@nongnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 2/3] linux-user: Add aliases for some Alpha syscalls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Alpha always used 32-bit uids, but never renamed the syscalls to match i386 when 32-bit uids were added there. This enables the proper bits in syscall.c. Signed-off-by: Richard Henderson --- linux-user/alpha/syscall_nr.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/linux-user/alpha/syscall_nr.h b/linux-user/alpha/syscall_nr.h index d3c19cc..7182223 100644 --- a/linux-user/alpha/syscall_nr.h +++ b/linux-user/alpha/syscall_nr.h @@ -411,3 +411,11 @@ #define TARGET_NR_signalfd 476 #define TARGET_NR_timerfd 477 #define TARGET_NR_eventfd 478 + +/* The following aliases are defined in order to match up with the + standard i386 syscalls implemented in syscalls.c. */ +#define TARGET_NR_chown32 TARGET_NR_chown +#define TARGET_NR_setuid32 TARGET_NR_setuid +#define TARGET_NR_setgid32 TARGET_NR_setgid +#define TARGET_NR_setfsuid32 TARGET_NR_setfsuid +#define TARGET_NR_setfsgid32 TARGET_NR_setfsgid