Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NetBSD #619

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

jaredmcneill
Copy link

This change adds support for X86 and Arm based NetBSD guests.

A lot of the FreeBSD specific quirks also apply to NetBSD and are reused where possible. A few places where NetBSD differs:

  • FUSE compatibility is provided by the librefuse library.
  • Minor differences in the xdr(3) APIs.
  • NetBSD provides struct statvfs with equivalent functionality of struct statfs.
  • A gethostbyname_r implementation is provided by libc, but not exposed by any system headers.
  • OS specific mcontext_t layout.
  • ctype functions, like Win32, are implemented using lookup tables.
  • Machine architecture is reported by hw.machine_arch sysctl.
  • Thread ID can be obtained with _lwp_self().
  • NetBSD provides a Linux compatible /proc/<pid>
  • Different prefixes for disk device names (dk, wd, sd, ld).
  • No separate libdl or librt libraries.
  • No support for thread specific locales (newlocale, uselocale, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants