openat (at least partially) supported on netbsd