summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/poll.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-08-21 17:40:32 +0200
committerThomas Weißschuh <linux@weissschuh.net>2025-09-01 20:47:51 +0200
commite6366101ce1fab9e42ae66ff0fed5360fce65bb5 (patch)
treecceec9c63b02b2eddcc7187c54e6b0caa1202b07 /tools/include/nolibc/poll.h
parentb22d81ed319cbe2d5b45f605cab18aaf82a66a50 (diff)
tools/nolibc: remove __nolibc_enosys() fallback from time64-related functions
These fallbacks where added when no explicit fallbacks for time64 was implemented. Now that these fallbacks are in place, 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-1-4b63f2caaa89@weissschuh.net
Diffstat (limited to 'tools/include/nolibc/poll.h')
-rw-r--r--tools/include/nolibc/poll.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/include/nolibc/poll.h b/tools/include/nolibc/poll.h
index 1765acb17ea0..0d053f93ea99 100644
--- a/tools/include/nolibc/poll.h
+++ b/tools/include/nolibc/poll.h
@@ -39,10 +39,8 @@ int sys_poll(struct pollfd *fds, int nfds, int timeout)
t.tv_nsec = (timeout % 1000) * 1000000;
}
return my_syscall5(__NR_ppoll_time64, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
-#elif defined(__NR_poll)
- return my_syscall3(__NR_poll, fds, nfds, timeout);
#else
- return __nolibc_enosys(__func__, fds, nfds, timeout);
+ return my_syscall3(__NR_poll, fds, nfds, timeout);
#endif
}