Removed != 0 in all if libc.ioctl statements