From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3990 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: pselect question Date: Thu, 29 Aug 2013 19:20:56 +0100 Message-ID: References: <20130829173815.GI20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1377800468 11707 80.91.229.3 (29 Aug 2013 18:21:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Aug 2013 18:21:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3994-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 29 20:21:12 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VF6qD-0005Ph-7U for gllmg-musl@plane.gmane.org; Thu, 29 Aug 2013 20:21:09 +0200 Original-Received: (qmail 5531 invoked by uid 550); 29 Aug 2013 18:21:08 -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 5520 invoked from network); 29 Aug 2013 18:21:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qdISDsNRleH8f8Q80IHFTQ10/+iySj4l0PpS2WZKJIg=; b=QNm8U7yvJZZZE+UIXtxvRo6OX/80mxhnLuDgCCXjqXhJvey6WPmposB/LT350tvl0x gqlvsxzCOZWRr4FT4+Hh1SRIWBC3HZRslVJxo0Gma2G9QsO5pTb7teuxjchk4ySHFWog uNmzhUd8fxIihASdGXdvu+mGW+2S2NTyozY14= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=qdISDsNRleH8f8Q80IHFTQ10/+iySj4l0PpS2WZKJIg=; b=eRabVOv60HnIKuWcR4ewZXOFB+UYYiSUB2oXGvQBsSAPbCP50l+PsFfwx0Ox4dq9Ro TlqXrdQdQZZ/rvhTX2yC4KeqlsZV2putjDcu/+drp4lZvnZpYmn4EpYpwpUGLykniQAH 643dEl2uXHPhRbZ6oppH4n9WXECnuCKJD6KcK+egjdsof+09Y451x+sXQEYQcv7uC8/Y aNBUarI274EM28x18aqHgG/AS9zeuQfbU3UYBsg4Jef2l739GcrnOqD+BpmmVpon18iT 7zXi9Y8FoiNzzK6qYiXus1s87pSQAl3iNhlopKtKQozbsveccErXG3sxtFPGav0MRO2p 8+HA== X-Gm-Message-State: ALoCoQmTpLEd0Z7g3P3OILRM2bsHMXNcBOOer7lppl2xtotLs5X7IgCrTjPHyp5anGIZC0ybK4JZ X-Received: by 10.68.252.168 with SMTP id zt8mr5294572pbc.35.1377800456487; Thu, 29 Aug 2013 11:20:56 -0700 (PDT) In-Reply-To: <20130829173815.GI20515@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:3990 Archived-At: On Thu, Aug 29, 2013 at 6:38 PM, Rich Felker wrote: > On Thu, Aug 29, 2013 at 05:26:56PM +0100, Justin Cormack wrote: >> I see pselect has the oddest kernel interface since the last odd one. >> >> However the bit long data[2] = { (long)mask, _NSIG/8 }; looks like it >> could be incorrect on MIPS where _NSIG is 128... is that right? >> >> (just got a mips box, must install it). > > Why do you think it's wrong? All of the kernel interfaces that take a > sigset_t argument include an additional argument specifying the usable > size of the sigset_t, and the kernel issues an error (EINVAL if I'm > not mistaken) unless the argument matches the kernel's idea of the > size of sigset_t. On MIPS, the expected size is 16. Sorry, ignore me, I misread it... Justin