Commit Graph

2 Commits

Author SHA1 Message Date
Sebastiaan van Stijn 5db4494c3d make deprecated consts an alias, and don't use internally
The consts were deprecated in favor of their counterparts in
golang.org/x/sys/unix. This patch makes them an alias / sets them
to those values, which makes it more transparent that they're the
same.

Also update internal uses of the deprecated consts, as they
should no longer be used, and updated the "stub" function
to be deprecated as well.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-13 09:56:59 -08:00
Sebastiaan van Stijn 974e44d5c7 fix build-tags for non-linux platforms
- NSHandle could only be used on Unix systems. Given that all other parts
  of the code are only implemented on Linux (not for other Unix-y platforms),
  I moved this file to be Linux-only.
- Rename "_unspecified" to "_others", which is a common suffix for such cases.
- Introduce stubs for NSHandle for non-Linux platforms.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-13 09:56:59 -08:00