Incorrect/incomplete eventfd implementation?
Eugene Rudoy
gene.devel at googlemail.com
Wed May 16 12:50:03 UTC 2012
Hi,
I believe the implementation of eventfd recently added to uClibc (s. [1],
[2]) is incorrect. It incorrectly assumes eventfd takes two arguments
whereas in reality it expects just one. It's eventfd2 which expects two
arguments. Furthermore it doesn't properly support kernel versions which do
provide eventfd but don't provide eventfd2 (s. [3]). glibc seems to support
all possible cases (s. [4]).
Best regards,
Gene
[1]
http://git.uclibc.org/uClibc/commit/?id=9ed163dc0eaebe8734c35b356c406e9eb1c68d76
[2] http://lists.uclibc.org/pipermail/uclibc/2011-October/045877.html
[3]
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/kernel-features.h;h=1090f8a809d7d14986722f796f96a75df4f7074d;hb=HEAD#l452
[4]
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/eventfd.c;h=4a0e8bc0caa676cdbb5f777780a06e43129a0e72;hb=HEAD
More information about the uClibc
mailing list