commit d510ed76a96ab1bdcfe021a3b61bd6bb84a4d72b
parent f3ccc577f967c82687cc0caa82a9cec1c499c3d6
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 10 Oct 2022 17:26:58 -0400
rt+freebsd: remove duplicates from strerror switch
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/rt/+freebsd/errno.ha b/rt/+freebsd/errno.ha
@@ -40,7 +40,7 @@ export fn strerror(err: errno) str = {
return "Bad file descriptor";
case ECHILD =>
return "No child processes";
- case EAGAIN, EWOULDBLOCK =>
+ case EAGAIN =>
return "Resource temporarily unavailable";
case ENOMEM =>
return "Cannot allocate memory";
@@ -136,7 +136,7 @@ export fn strerror(err: errno) str = {
return "Protocol not supported";
case ESOCKTNOSUPPORT =>
return "Socket type not supported";
- case ENOTSUP, EOPNOTSUPP =>
+ case EOPNOTSUPP =>
return "Operation not supported";
case EPFNOSUPPORT =>
return "Protocol family not supported";
@@ -244,8 +244,6 @@ export fn errname(err: errno) str = {
return "ECHILD";
case EAGAIN =>
return "EAGAIN";
- case EWOULDBLOCK =>
- return "EWOULDBLOCK";
case ENOMEM =>
return "ENOMEM";
case EACCES =>
@@ -340,8 +338,6 @@ export fn errname(err: errno) str = {
return "EPROTONOSUPPORT";
case ESOCKTNOSUPPORT =>
return "ESOCKTNOSUPPORT";
- case ENOTSUP =>
- return "ENOTSUP";
case EOPNOTSUPP =>
return "EOPNOTSUPP";
case EPFNOSUPPORT =>