From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available and flags provided. Date: Sun, 20 Oct 2024 21:19:21 +0200 Message-ID: <87jze2lgzq.fsf@gnu.org> References: <20240809225435.19028-1-~@wolfsden.cz> <20240809225435.19028-9-~@wolfsden.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17445"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72547@debbugs.gnu.org To: Tomas Volf <~@wolfsden.cz> Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Oct 20 21:20:17 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2bTN-0004NJ-DI for guile-bugs@m.gmane-mx.org; Sun, 20 Oct 2024 21:20:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2bSl-0005xE-Uh; Sun, 20 Oct 2024 15:19:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2bSk-0005wY-5h for bug-guile@gnu.org; Sun, 20 Oct 2024 15:19:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2bSj-0007tV-TT for bug-guile@gnu.org; Sun, 20 Oct 2024 15:19:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=8Dmz+p6e1odXzp/aV3mL/5IF0/Fzm24kO+aDIF4Xci4=; b=IUSAcNDhv9HnxaPKtah6lPULoMu2FaiAqB2eZCcU3zK3HvAhu53i0lfqFewrebzfsqjw6484uGWpHkYov+A+TICAYVSzVCmTFx0QK2YKf3KFiFEd7OBD1U8fKWrTc65B7vZ9qEoON84fdOH9xbqK6/cmoOuJnLoAHS2qRKvuKqw0WMqHSPsAX/KXxmmorBkDTZFUvgQVmj3A9wyAk8A5cCJQNIi9MP56cAH3GnyGppIwBMZov6xthTj1VIriYTKY2YwjoDheyStZEiSplq8RaX+Rj0wac/IangNOUQtYNHTXInNZygAjia1ImuIz0p+XSjuOHznM8UHd5QuN3SSaUQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2bT9-0008VB-A0 for bug-guile@gnu.org; Sun, 20 Oct 2024 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 20 Oct 2024 19:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72547 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 72547-submit@debbugs.gnu.org id=B72547.172945199632650 (code B ref 72547); Sun, 20 Oct 2024 19:20:03 +0000 Original-Received: (at 72547) by debbugs.gnu.org; 20 Oct 2024 19:19:56 +0000 Original-Received: from localhost ([127.0.0.1]:48553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bT2-0008UX-Bv for submit@debbugs.gnu.org; Sun, 20 Oct 2024 15:19:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bT0-0008UE-Ku for 72547@debbugs.gnu.org; Sun, 20 Oct 2024 15:19:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2bSV-0007sl-5X; Sun, 20 Oct 2024 15:19:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=8Dmz+p6e1odXzp/aV3mL/5IF0/Fzm24kO+aDIF4Xci4=; b=DgKnQ0CFVh6Lfb7JHLfH A6iyRGOOEeXl4EO+iNMIkZmR/ONG+3beQDQ84eln7kERxRkRHc18LobCNwK+bfnp4fB+ABadQP0e+ fpBf1mQSwNhzKsvWQs99evpKVj070P5wudWaxqy/FUn4qXwbzjjmJWDCuqLc9v3jC6C01Xx+0rKCE +JWmRGZh3kmClQys4n1vzhL33i/GqsvERHqRr02Kj6mSU5aiBWCKNaLA1SB0BTsioljWtTThiuWnJ owoLN+asb49H3ctehRr6WUyDCcQDvpHFiYldyXod6A9nFJu2vZOw13ZIfnjTuS33xPDAhYL0UMxx1 BEEX50MAaruWng==; In-Reply-To: <20240809225435.19028-9-~@wolfsden.cz> (Tomas Volf's message of "Sat, 10 Aug 2024 00:54:35 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11050 Archived-At: Tomas Volf <~@wolfsden.cz> skribis: > --- a/libguile/posix.c > +++ b/libguile/posix.c > @@ -282,7 +282,7 @@ SCM_DEFINE (scm_pipe2, "pipe", 0, 1, 0, > /* 'pipe2' cannot be emulated on systems that lack it: calling > 'fnctl' afterwards to set the relevant flags is not equivalent > because it's not atomic. */ > - rv =3D ENOSYS; > + rv =3D errno =3D ENOSYS; It doesn=E2=80=99t make much of a difference but I changed it to: rv =3D -1, errno =3D ENOSYS;