In Linux note 'man 2 eventfd'. int eventfd(unsigned int initval, int flags); You'll see this is incorrectly defined here: src/unix/notbsd/linux/other/mod.rs (the bug is that c_int should be c_uint)