libc: fix a bug in setting poll FDs

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
eventfd: add poll support

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>