NetBSD: add kinfo_file, kinfo_pcb structures and related constants by antoncxx · Pull Request #4985 · rust-lang/libc (original) (raw)

Description

This PR extends NetBSD support with updates to kernel information structures and file descriptor types.

1. Added kinfo_pcb

2. kinfo_file structure

3. File descriptor types

Sources

Checklist

@rustbot label +stable-nominated


Of all the file descriptor types, I’ve been having trouble with DTYPE_MEMFD. Even though it exists in the NetBSD source code, the corresponding header on an actual installation seems to be missing this definition. I’m not sure how to handle this properly—whether to ignore it during tests or not include it at all.