Commit Graph

27 Commits (master)

Author SHA1 Message Date
Lomanic 3d0ecb18cf feat: enable build test on aix 1 week ago
shirou 69c2c10b0f feat: enable build test on OpenBSD. 3 months ago
shirou 9d35f6e749 fix(github): change v4 to v4 in github actions and README 10 months ago
shirou 13218ce5b1 feat: add linux, mips on build test 1 year ago
shirou f78f9a6bb8
Merge pull request #1414 from jeffweiss/bugfix/get_tests_working_on_s390x
get tests passing on s390x
2 years ago
shirou 6a5e40a517
Merge pull request #1228 from abner-chenc/master
host: add support for linux/loong64
2 years ago
Jeff Weiss f850a69ba1 get tests passing on s390x 2 years ago
Guoqi Chen b793d83f72 host: add support for linux/loong64
Updates #1338.

Signed-off-by: Guoqi Chen <chenguoqi@loongson.cn>
Co-authored-by: Jiantao Shan <shanjiantao@loongson.cn>
2 years ago
Don Bowman d7f1f76519
[host] linux/ppc: ppc64 definition from ppc64le
Same as commit fc04d2d, but for ppc64 from ppc64le definition.
2 years ago
shirou 1499bf63a6 feat: drop darwin/i386 from README and Makefile 3 years ago
shirou cfc178fc4b Add 386 and arm64 on FreeBSD to build_test 3 years ago
shirou 0969c9436b delete v2 directory, move v3 to top #1078 3 years ago
shirou b057cf4b84 add release recipe in Makefile 4 years ago
Ivan Andreev d6e0932b96 Remove CGO bits from process_openbsd.go (also v3)
Prior to this commit CGO was used in OpenBSD implementation of
Process.CmdlineSliceWithContext() for parsing the "kern.proc.args"
sysctl output. It requires some pointer arithmetics and raw pointer
dereferencing.

Having CGO in the "process" module prevents it from being go vet'ted
on any platform other than OpenBSD. In order to overcome this
limitation, the sysctl output parsing was reimplemented without raw
pointer deferencing. The resulting code might be slightly slower
than the original one, but it is cleaner and safer.

Since this fix allows go vet with GOOS=openbsd to run without any
issues on all platforms, openbsd entries were also added to the "vet"
Makefile target.

Co-authored-by: Sergey Vinogradov <cbrpnk@gmail.com>
4 years ago
Sergey Vinogradov 8ff2ab3187 Add "vet" target to the Makefile
Making the "vet" target will run "go vet ./..." for each supported
GOOS.

Also, some of the warnings produced by go 1.15 vet were mitigated.
4 years ago
Tobias Klauser 1934eadfcb Add linux/riscv64 build test 5 years ago
shirou dbbf1edf12 add macos test on CircleCI. 5 years ago
shirou 64d607539e add FreeBSD ARM support. copied from i386 6 years ago
shirou 77e5abb6f0
migrate to circleci2 (#587)
* add circleci 2.0 config, which has golang 1.9 image.
7 years ago
shirou 145dca90f7 change to use CommandContext. 7 years ago
shirou 4c73494c78 Add WithContext functions. 7 years ago
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods. 8 years ago
WAKAYAMA Shirou dfbb3e40da fix build bugs. 8 years ago
Marco Pfatschbacher b4846b445b Add support for OpenBSD/amd64
This code is based on the FreeBSD version
and implements roughly the same feature set.
8 years ago
Lukas Fittl da9fa1162b Add fallback code for all unsupported operating systems.
This enables using gopsutil in a codebase that gets built on other OSes
than the ones supported. Instead of a build failure as before, due to
the build tags, gopsutil will now throw an "not implemented" runtime
error.

Fixes #234.
9 years ago
Lukas Fittl fc27f01654 Ensure "make check" can succeeed if it doesn't find any golint errors. 9 years ago
Shirou WAKAYAMA 4c73e74c42 add helpful Makefile. 9 years ago