From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17090 invoked from network); 4 Jan 2022 22:37:57 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 4 Jan 2022 22:37:57 -0000 Received: from odoacer.turtle-trading.net ([93.241.193.16]) by 4ess; Tue Jan 4 15:23:22 -0500 2022 Received: from zenobia.turtle-trading.net ([192.168.2.111]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1n4ppZ-0003jW-Km; Tue, 04 Jan 2022 20:50:49 +0100 Received: from benny by zenobia.turtle-trading.net with local (Exim 4.94.2) (envelope-from ) id 1n4ppZ-000gFA-CR; Tue, 04 Jan 2022 20:50:49 +0100 From: Benjamin Riefenstahl To: 9front@9front.org Date: Tue, 04 Jan 2022 20:50:49 +0100 Message-ID: <87tuej2sbq.fsf@turtle-trading.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: structured transactional full-stack shader deep-learning interface-based event Subject: [9front] ape/_errno: ENOENT Reply-To: 9front@9front.org Precedence: bulk --=-=-= Content-Type: text/plain Tcl checks errno==ENOENT for its equivalent of "rm -f", but APE does not recognize the errstr for that. If somebody knows where the code for this is, we could add comment with a pointer to that source. Also, is there a way to find more omissions like this? --=-=-= Content-Type: multipart/mixed; boundary="upas-fysgmkhsuenvoncpkpdghodmzp" Content-Disposition: inline This is a multi-part message in MIME format. --upas-fysgmkhsuenvoncpkpdghodmzp Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit from postmaster@4ess: The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Type: text/x-diff Content-Disposition: inline; filename="0003-ape-_errno.c-(map)-add-another-ENOENT.patch" --upas-fysgmkhsuenvoncpkpdghodmzp Content-Type: application/octet-stream Content-Disposition: attachment; filename="0003-ape-_errno.c-(map)-add-another-ENOENT.patch.suspect" From: Benjamin Riefenstahl Date: Sat, 25 Dec 2021 13:59:59 +0000 Subject: [PATCH] ape/_errno.c (map): add another ENOENT Many programs check this particular errno. --- diff dd7ad4725c5dfb26ad44e8e4206116f96f054ba4 f96fae96efebf3eb7917e2c0b55439db2b242f79 --- a/sys/src/ape/lib/ap/plan9/_errno.c Fri Dec 10 21:47:09 2021 +++ b/sys/src/ape/lib/ap/plan9/_errno.c Sat Dec 25 14:59:59 2021 @@ -102,6 +102,8 @@ {EOPNOTSUPP, "operation not supported"}, {EADDRINUSE, "address in use"}, {EGREG, "unnamed error message"}, + + {ENOENT, "No such file"}, }; #define NERRMAP (sizeof(map)/sizeof(struct errmap)) -- 1.0 --upas-fysgmkhsuenvoncpkpdghodmzp-- --=-=-=--