summaryrefslogtreecommitdiff
path: root/tools/include/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-08-21 17:40:34 +0200
committerThomas Weißschuh <linux@weissschuh.net>2025-09-01 20:47:53 +0200
commit09adec1f4b446e8788c70022fae41356ee916260 (patch)
tree8d53175b6a6c96399d898c58fa5bc09c921810cd /tools/include/nolibc
parent4b6ffb2d87a76b02f63d029533cb3e8c1482f358 (diff)
tools/nolibc: remove __nolibc_enosys() fallback from dup2()
All architectures have one of the real functions available. The additional fallback to __nolibc_enosys() is superfluous. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250821-nolibc-enosys-v1-3-4b63f2caaa89@weissschuh.net
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r--tools/include/nolibc/sys.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h
index 12030c803173..32cc741f2f7d 100644
--- a/tools/include/nolibc/sys.h
+++ b/tools/include/nolibc/sys.h
@@ -248,10 +248,8 @@ int sys_dup2(int old, int new)
}
return my_syscall3(__NR_dup3, old, new, 0);
-#elif defined(__NR_dup2)
- return my_syscall2(__NR_dup2, old, new);
#else
- return __nolibc_enosys(__func__, old, new);
+ return my_syscall2(__NR_dup2, old, new);
#endif
}