delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=K2sWdhgKco1Df9vj | |
XmCNXUy4hic4N1a59PGTFXAgyO/cZ2kS1uvTJUmx3j0m1NFWPOOGkUM+7DCtkEHu | |
BhUDXq+N8z+1/OJYaeQR40ZCdPotmIKwjjcXqXjx7e5MKqhzufXxtO4QVN2yw4Fo | |
kCsyfVbrWpcgU9XiBjRIuETDMP4= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=elpIVZq/mC//zG3F/mhiay | |
eDYfc=; b=aBWkaL3XW0q0nGhw7TMltybc3Ozseqq5P42o8U8Oo+3sw7b9X9W8TQ | |
/8G7XJcJWrOQ2Ln7CRtxtB4tntBk/rJGD5Lag09q8hR0o2I8IPPifxdLoKnZsFDy | |
hMotTX0mYjipe7/ewArYt9x0HpmM6f2S5lkPxNIZBOBt9zyjnkzmI= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
X-HELO: | vms173015pub.verizon.net |
Message-id: | <525DCC6F.7000104@cygwin.com> |
Date: | Tue, 15 Oct 2013 19:14:55 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: siginfo_t missing member si_band |
References: | <525D55B3 DOT 3050002 AT cs DOT utoronto DOT ca> <20131015194242 DOT GA2368 AT ednor DOT casa DOT cgf DOT cx> <525DB015 DOT 1010707 AT cs DOT utoronto DOT ca> <20131015223645 DOT GB7490 AT ednor DOT casa DOT cgf DOT cx> |
In-reply-to: | <20131015223645.GB7490@ednor.casa.cgf.cx> |
On 10/15/2013 6:36 PM, Christopher Faylor wrote: > On Tue, Oct 15, 2013 at 05:13:57PM -0400, Ryan Johnson wrote: >> On 15/10/2013 3:42 PM, Christopher Faylor wrote: >>> On Tue, Oct 15, 2013 at 10:48:19AM -0400, Ryan Johnson wrote: >>>> Hi all, >>>> >>>> While trying to build python3 for cygwin, I kept encountering the >>>> following error message: >>>> >>>> ./Modules/signalmodule.c: In function ?fill_siginfo?: >>>> ./Modules/signalmodule.c:745:60: error: ?siginfo_t? has no member named >>>> ?si_band? >>>> PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band)); >>>> ^ >>>> Include/tupleobject.h:62:75: note: in definition of macro >>>> ?PyTuple_SET_ITEM? >>>> #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] >>>> = v) >>>> ^ >>>> ./Modules/signalmodule.c:745:5: note: in expansion of macro >>>> ?PyStructSequence_SET_ITEM? >>>> PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band)); >>>> >>>> As far as I can tell, siginfo_t::si_band is mandated by POSIX.1-2001, >>>> and required for proper handling of SIGPOLL. The latter seems to >>>> correspond to async I/O with poll(2). I'm pretty sure cygwin doesn't >>>> support async I/O, but shouldn't the struct member at least exist, to >>>> avoid breaking code that assumes its existence? The alternative is to >>>> patch python3 locally so its os.sigwaitinfo function no longer touches >>>> si_band, or to file a bug upstream so that the module's configury tests >>>> for its existence before using it. >>>> >>>> Thoughts? >>> Sure. I question the utility of lying in a structure about the >>> availability of an unimplemented feature. If something is specifically >>> expecting the structure member to exist it seems like it would be >>> expecting it to do something. >> So that would be a vote for filing a bug upstream with python's FFI >> interface to signal handling? Fair enough. > > I guess so. In a project that wasn't requestware or wishware it would > be a spur for someone to submit code to Cygwin to implement SIGPOLL and > it's accompanying siginfo_t handling. Unfortunately, Cygwin seems to > be mainly requestware these days. Any chance of getting a Cygwin implementation of a coffee-maker then? ;-) -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |