From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UJwkM1e7OWGMegAAWB0awg (envelope-from ) for ; Thu, 09 Sep 2021 03:44:23 -0400 Received: by simark.ca (Postfix, from userid 112) id C06641EE23; Thu, 9 Sep 2021 03:44:23 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 13B7D1EDDB for ; Thu, 9 Sep 2021 03:44:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 98220384B0DB for ; Thu, 9 Sep 2021 07:44:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98220384B0DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1631173462; bh=Cw+S64D8EVA9lFAy74Q0S99BCVTSaHIIsJy8tgeEhpA=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=iF3hUjq9Ety7sbzG7tX6R3RrkXqZpH+ujkVdxg5p2hTPzdT5gL8tn8ALK+cYpuisq +f3XYiXF+TnH1j8jdSlpyyPoexjuk4Q7/H708xjwU2Ed6w/Ms3ln6QC/+jXC3Qn4Ud mzDuiSHsFEgSe6ZlKqQlBdrArxk4lGJtTitGKgX8= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 6F367384C002 for ; Thu, 9 Sep 2021 07:44:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F367384C002 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50096) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOEj4-0000Xc-La; Thu, 09 Sep 2021 03:44:02 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1492 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOEj3-00043z-BR; Thu, 09 Sep 2021 03:44:02 -0400 Date: Thu, 09 Sep 2021 10:44:12 +0300 Message-Id: <835yvakxbn.fsf@gnu.org> To: Mike Frysinger In-Reply-To: (message from Mike Frysinger on Thu, 9 Sep 2021 03:33:23 -0400) Subject: Re: [PATCH 2/2] sim: use gnulib to set nonblocking mode References: <20210909063836.16875-1-vapier@gentoo.org> <20210909063836.16875-2-vapier@gentoo.org> <837dfqky8t.fsf@gnu.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Thu, 9 Sep 2021 03:33:23 -0400 > From: Mike Frysinger > Cc: gdb-patches@sourceware.org > > > I'm not familiar with the sim's code, but Gnulib AFAIK supports > > non-blocking flag on MinGW only for named pipes and sockets, not for > > real files. Are all the file descriptors in the places where you make > > the changes of one of those kinds? E.g., I see the fcntl calls on > > file descriptor zero in some places. > > sim only uses nonblocking on sockets or tty's (e.g. stdin), not files on disk. > i don't know offhand about the specifics of Windows stdio and whether those are > actually pipes. I don't think Gnulib's set_nonblocking_flag works on descriptors for the console devices, so I think the code should be prepared to see ENOSYS and ENOTSUP in errno in those cases.