From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8979 Path: news.gmane.org!not-for-mail From: Dmitry Ivanov Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2] Different siginfo_t for MIPS Date: Thu, 10 Dec 2015 15:49:18 +0200 Message-ID: <20151210154918.74e590b8da604a93b17c3d49@ubnt.com> References: <20151210124712.3b4b811fd0d99a5b482b4ee3@ubnt.com> <20151210123633.GD23362@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1449755384 20536 80.91.229.3 (10 Dec 2015 13:49:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 13:49:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8992-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 10 14:49:43 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1a71bH-0002UY-Hw for gllmg-musl@m.gmane.org; Thu, 10 Dec 2015 14:49:39 +0100 Original-Received: (qmail 27839 invoked by uid 550); 10 Dec 2015 13:49:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27778 invoked from network); 10 Dec 2015 13:49:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ubnt.com; s=google; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=vT8QPEaHgas4FwzGgGfFIY+TaQncCmOxH4nc3DaRd3w=; b=b9RYyS30W5d4gOl+tMWgrDmIQdZ/L4KaIRBUbulB+oe6WiJ9SZ4OBu0V/AHuxx6sWz Uw5lFjCTriov4KabJZeWbluO1x+fmImNpw3C4gsKwPvNiB3VeR12xPtS0432rVp1qJI8 iIsqC4/rUOqkGWn4bhWlJj1/9Nw2ka/TWP7UE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=vT8QPEaHgas4FwzGgGfFIY+TaQncCmOxH4nc3DaRd3w=; b=DUh6TxL3uxHHn5PS1GVTSmj+Csqs3/2eqZrce8iebNK8wXANfz43t6duwPgAxfepbI VB9QXvmLwo7M4pO5AnkMwzSabycbN4KRA3vMJxYr611YsgGGIcq675+J1VQLlCFHEEc4 g3rpCNQQUgxo/c9cB9PlH0x2OVnqaBEoKWqgvgmj1xYDKj2CBuDzDxreZubn8SvrqNxa IbS9Up71ATgD6Adi4ESKjxi8yzqM0MerOpUcScKRmWyljhZhVxGSBboU0hauL9vUHfIe /36w6o+5gC1IMYQJiHwtqWC+sbMPrXaEETURqDFMq0iR0CHtNO41WlSu8i0ob3m3tsqn K4Tg== X-Gm-Message-State: ALoCoQlEzxVVzFWi/QDEiCoKlTAqPcREtoUKK890+88aep2B9KVZIdMnUYLkOcJZ1c8zQykTFEMCneUfqj3ItLVWkVepWpmVudhCjozMYrSBtnnZDn87oy29NMndQLzHe9IW/+eYvrvChwCEePJ4nDvv4vrtvvBuNEeK+aC4IMKOA1gPB+9jDC6kwO49ag/4Po6b/3nbxJRx X-Received: by 10.25.161.78 with SMTP id k75mr4476537lfe.31.1449755359971; Thu, 10 Dec 2015 05:49:19 -0800 (PST) In-Reply-To: <20151210123633.GD23362@port70.net> X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:8979 Archived-At: Linux for MIPS has different siginfo_t structure. Also, some si_code values are different. This patch is required for POSIX timers to work. --- include/signal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/signal.h b/include/signal.h index 559362f..c026e23 100644 --- a/include/signal.h +++ b/include/signal.h @@ -36,9 +36,15 @@ extern "C" { #define SI_ASYNCNL (-60) #define SI_TKILL (-6) #define SI_SIGIO (-5) +#ifdef __mips__ +#define SI_ASYNCIO (-2) +#define SI_MESGQ (-4) +#define SI_TIMER (-3) +#else #define SI_ASYNCIO (-4) #define SI_MESGQ (-3) #define SI_TIMER (-2) +#endif #define SI_QUEUE (-1) #define SI_USER 0 #define SI_KERNEL 128 @@ -86,7 +92,11 @@ union sigval { }; typedef struct { +#ifdef __mips__ + int si_signo, si_code, si_errno; +#else int si_signo, si_errno, si_code; +#endif union { char __pad[128 - 2*sizeof(int) - sizeof(long)]; struct { -- 2.1.4