epoll_create, epoll_ctl, epoll_wait not implemented in 2.3.2-1
Hi,
epoll_create, epoll_ctl, epoll_wait are not implemented in glibc-2.3.2-1.
E.g. if you try to
compile http://www.xmailserver.org/linux-patches/pipetest.c you'll
get:
% gcc -o pipetest pipetest.c
/tmp/ccgCNam4.o(.text+0x39b): In function `main':
: warning: epoll_create is not implemented and will always fail
/tmp/ccgCNam4.o(.text+0x483): In function `main':
: warning: epoll_ctl is not implemented and will always fail
/tmp/ccgCNam4.o(.text+0x156): In function `run_once':
: warning: epoll_wait is not implemented and will always fail
With the external epoll library
(http://www.xmailserver.org/linux-patches/epoll-lib-0.9.tar.gz) the
test code works fine:
% gcc -o pipetest pipetest.c -Lepoll-lib-0.9/lib -lepoll
% ./pipetest
4.128713
3.970297
...
Now that 2.6.0-test kernels are available, it would be nice to have
support for epoll in glibc. (RedHat's glibc-2.3.2 builds already
support it.)
More information about epoll can be found at
http://www.xmailserver.org/linux-patches/nio-improve.html
Man pages (epoll.4, epoll_create.2, epoll_ctl.2, epoll_wait.2) are
available from
http://www.xmailserver.org/linux-patches/epoll-lib-0.9.tar.gz
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux/java2-status/
Reply to: