9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] ape/_errno: ENOENT
@ 2022-01-04 19:50 Benjamin Riefenstahl
  2022-01-05 19:13 ` cinap_lenrek
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Riefenstahl @ 2022-01-04 19:50 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

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?


[-- Attachment #2.1: Type: text/plain, Size: 310 bytes --]

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"

[-- Attachment #2.2: 0003-ape-_errno.c-(map)-add-another-ENOENT.patch.suspect --]
[-- Type: application/octet-stream, Size: 655 bytes --]

From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-10  3:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 19:50 [9front] ape/_errno: ENOENT Benjamin Riefenstahl
2022-01-05 19:13 ` cinap_lenrek
2022-01-06 13:35   ` Benjamin Riefenstahl
2022-01-06 16:27     ` ori
2022-01-06 17:32       ` Benjamin Riefenstahl
2022-01-06 20:24         ` Xiao-Yong Jin
2022-01-07 10:09           ` Benjamin Riefenstahl
2022-01-10  1:55         ` 有澤 健治

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).