Go packages for low-level interaction with the operating system

Clone this repo:
  1. 9fbb57f unix: use pipe2 syscall on OpenBSD by Aaron Bieber · 3 days ago master
  2. e047566 unix: add new setfsuid/setfsgid wrappers by Sergey Ivanov · 6 days ago
  3. 34d2753 unix: correct PtraceIoDesc and define PtraceIoDesc per GOARCH on freebsd by Tobias Klauser · 7 days ago
  4. 655fe14 unix: test (*FdSet).Clear in TestFdSet by Tobias Klauser · 7 days ago
  5. c1edf53 Revert "unix: fix Setfsuid and Setfsgid return values" by Brad Fitzpatrick · 7 days ago


This repository holds supplemental Go packages for low-level interactions with the operating system.


The easiest way to install is to run go get -u golang.org/x/sys. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.