unix: Add ppoll support

Allows for finer grained timeout values, and fixes a FIXME.

This also drops the legacy select() fallback path in favor of presuming that poll() is always available. poll() is part of the POSIX.1-2001 standard, has been available in Unix since some time in the 1980s, the BSDs since at least the early 90s, and Linux since kernel 2.1, which predates kernel support for Pthreads. glibc also has its own emulation using select(), if necessary.
This commit is contained in:
Frank Praznik
2025-10-17 12:35:04 -04:00
parent 201ad7f79b
commit 427f838f58
3 changed files with 22 additions and 39 deletions

View File

@@ -199,7 +199,7 @@
#cmakedefine HAVE_SEM_TIMEDWAIT 1
#cmakedefine HAVE_GETAUXVAL 1
#cmakedefine HAVE_ELF_AUX_INFO 1
#cmakedefine HAVE_POLL 1
#cmakedefine HAVE_PPOLL 1
#cmakedefine HAVE__EXIT 1
#endif /* HAVE_LIBC */