Syscalls using sigevent are incorrect. Syscalls using this: mq_notify and timer_create. Structure is a different size between 32-bit and 64-bit. Also the signal handling behaviour isn't correct at all.