fcntl for netbsd