man 2 eventfd
says:
SYNOPSIS
#include <sys/eventfd.h> int eventfd(unsigned int initval, int flags);
but in /usr/include/sys/eventfd.h
I see:
extern int eventfd (int __count, int __flags) __THROW;
I hit this because I needed to pass eventfd
as a function pointer and I got a warning when it had the signature described in the manpage. Is this signature non-portable? Do I need to be aware of this in code I write?