On Tue, 2009-07-14 at 14:12 -0400, Chetan Reddy wrote: > confdefs.h also has HAVE_DUP3 set to 1 even though a simple test > program calling dup3 returns -1 with errno 38 (Function not > implemented). So i guess we'd need similar checks for dup3.
OK, thanks. So we'll need to check for that one too. > accept4 is correctly detected as by AC_CHECK_FUNCS as not present on > my system (and a grep for accept4 in /usr/include shows that it isn't > defined). My guess, because of this: ----------------- The accept4() system call is available starting with Linux 2.6.28; support in glibc is available starting with version 2.10. ----------------- So, it's only a matter of time before we get bitten by this one too. Probably prudent to do all of them the same way as epoll_create(). -- Bojan