vishvananda / netns

Simple network namespace handling for go.
Apache License 2.0
375 stars 133 forks source link

Use golang.org/x/sys/unix instead of syscall #40

Closed tklauser closed 4 years ago

tklauser commented 4 years ago

The syscall package is deprecated and no longer updated as per https://golang.org/pkg/syscall/. Use the golang.org/x/sys/unix package instead, which also provides a wrapper for SYS_SETNS, so the syscall number encoding depending on runtime.GOARCH can be dropped.

Signed-off-by: Tobias Klauser tklauser@distanz.ch

tklauser commented 4 years ago

@vishvananda @aboch friendly ping: Is there anything preventing this from being merged?

aboch commented 4 years ago

LGTM