fix darwin sys_ioctl