Mike Hearn mike@navi.cx writes:
On Tue, 23 Nov 2004 19:48:41 -0500, Vincent BĂ©ron wrote:
Then why do we link to them if they simply return "not implemented"? As notepad works corectly with the newer glibc, I wonder if we do have a fallback to the poll branch (I thought it was a compile-time define).
Alexandre seems to feel we should always use glibc support when available even if that support is just "return -ENOSYS". I'm not really sure why but I expect there's a good reason for it.
We cannot check for a "return -ENOSYS" function at compile time, so if the function exists we link to it and check for ENOSYS at run time, and fall back to poll() in that case.