- 28 Nov, 2017 1 commit
-
-
Ian Lance Taylor authored
The SOCK_DGRAM version of the test was introduced for 1.10, and breaks on older versions. Fixes golang/go#22899 Change-Id: I97ce6f05a8a885541df823eae996cbf5d87428c2 Reviewed-on: https://go-review.googlesource.com/80275 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 27 Nov, 2017 2 commits
-
-
Tobias Klauser authored
Follow the review comments by Brad in CL 79918. Change-Id: Iedb27aa9582502a90231778f5032a2e0109a4621 Reviewed-on: https://go-review.googlesource.com/80015 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
FreeBSD doesn't have a uname syscall but the information can be retrieved using sysctls the same way as on Darwin. Change-Id: I824c42490d1feed3f1ad3823427c01dd3e5ea3c1 Reviewed-on: https://go-review.googlesource.com/79918 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 24 Nov, 2017 1 commit
-
-
Tobias Klauser authored
Looks like it's enough to just add wrappers pointing to the corresponding SYS_FSTATAT{,64} or SYS_NEWFSTATAT syscall. Add a test to verify that assumption which checks that the returned stat data matches what is returned by Stat/Lstat. Also add the AT_NO_AUTOMOUNT constant which may be used for the flags parmeter. Fixes golang/go#14216 Change-Id: I73f27b483bd97d2dcf09d4b95a7957e75d194395 Reviewed-on: https://go-review.googlesource.com/79795 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 23 Nov, 2017 1 commit
-
-
Tobias Klauser authored
dragonfly/386 isn't a valid GOOS/GOARCH pair and there are no generated files for this pair in x/sys/unix. Follows CL 79675 which did the same for syscall. Change-Id: Ie70937b464fa911a43c26515bcac1c03740dc1fe Reviewed-on: https://go-review.googlesource.com/79676Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 21 Nov, 2017 1 commit
-
-
Tobias Klauser authored
Add the same workaround as already present for 386 (CL 14151), amd64 (CL 14091) and arm64 (CL 14094) on darwin. Fixes golang/go#22839 Change-Id: I7eee543df204410dd3328dccb7d81166f77e1e2f Reviewed-on: https://go-review.googlesource.com/79155 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 20 Nov, 2017 1 commit
-
-
Tobias Klauser authored
testing.Run was introduced in Go 1.7. Skip the tests using it if built with Go 1.6 or below. Change-Id: I24c81426ea6d3eaaca5a565ad79b62b30e645d04 Reviewed-on: https://go-review.googlesource.com/78255Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 19 Nov, 2017 1 commit
-
-
Awn authored
Fixes golang/go#22801 Change-Id: I1f466e26bcdf52bdd0df09bd81e31dde10347862 Reviewed-on: https://go-review.googlesource.com/78618 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 17 Nov, 2017 1 commit
-
-
Scott Crunkleton authored
Change-Id: I6e587cf1b7e8532f45df03bf94e209aafe8f81fd Reviewed-on: https://go-review.googlesource.com/78235Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 14 Nov, 2017 1 commit
-
-
Tobias Klauser authored
Use sort.Search to look up sysctl mib values from names instead of using a hand-crafted binary search. Also add a simple test to verify sysctl is still working after the change. Change-Id: I844840ac434a704b14c3166c3730daffabd2f347 Reviewed-on: https://go-review.googlesource.com/76930 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 13 Nov, 2017 1 commit
-
-
Tobias Klauser authored
Darwin doesn't have a uname syscall but the same information can be retrieved using sysctls. Use the raw sysctl numbers instead of doing the roundtrip via SysctlString in order to void the additional sysctl calls in nametomib and SysctlRaw. This implementation follows the one in https://opensource.apple.com/source/Libc/Libc-1244.1.7/gen/uname.c Change-Id: I19541e2a6700f84ced0549a8fb86faa8cb5e6fbe Reviewed-on: https://go-review.googlesource.com/77270 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 10 Nov, 2017 1 commit
-
-
Tobias Klauser authored
PtracePeekUser was already added in CL 38638, also add its "counterpart" allowing to modify the tracee's user area. Change-Id: Id84e85fe17b5cab7df5ecc83b6b7b8a39241241d Reviewed-on: https://go-review.googlesource.com/76670Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 09 Nov, 2017 1 commit
-
-
Aman Gupta authored
Change-Id: Id71df85e55e586b33fac66c5494291e11db8ed14 Reviewed-on: https://go-review.googlesource.com/76471Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 08 Nov, 2017 1 commit
-
-
Tobias Klauser authored
The unexported function syscallMode was added in CL 47290 but was never used anywhere. Remove it. FWIW this should also fix the build failure on plan9, as the file in question was lacking build tags. Change-Id: Icfd6b2dbcd66ceb2065c945d8a5a6d55e634fe5e Reviewed-on: https://go-review.googlesource.com/76510 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Nov, 2017 2 commits
-
-
Tobias Klauser authored
Re-run tip gofmt to remove empty lines before the first comment in a block (CL 71990). Change-Id: I10bed93b88fd4fa4345f9f8f930c45db9f0d6e59 Reviewed-on: https://go-review.googlesource.com/76191 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
To be used e.g. in github.com/mdlayher/vsock Change-Id: I52148a6e6c53c022c07e2cc8bf7348a96445c17b Reviewed-on: https://go-review.googlesource.com/76193 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
- 06 Nov, 2017 4 commits
-
-
Tobias Klauser authored
Add IoctlGetInt/IoctlSetInt, IoctlGetTermios/IoctlSetTermios and IoctlGetWinsize/IoctlSetWinsize on NetBSD. These are similar to the already existing implementations on Linux, Darwin and Solaris. Change-Id: I6c38d946b9f461c8e4c6c5e044aaff9b37e4b02f Reviewed-on: https://go-review.googlesource.com/76171Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Add IoctlGetInt/IoctlSetInt, IoctlGetTermios/IoctlSetTermios and IoctlGetWinsize/IoctlSetWinsize on Dragonfly. These are similar to the already existing implementations on Linux, Darwin and Solaris. Change-Id: I5a5a7ef69f02e01a4216779df5c927f241e5cec0 Reviewed-on: https://go-review.googlesource.com/76170Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Add IoctlGetInt/IoctlSetInt, IoctlGetTermios/IoctlSetTermios and IoctlGetWinsize/IoctlSetWinsize on OpenBSD. These are similar to the already existing implementations on Linux, Darwin and Solaris. Change-Id: I99e9434fa50338a0b5d825490513e9383539727d Reviewed-on: https://go-review.googlesource.com/75791 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Update the syscall numbers and error constants on macOS 10.13 with iOS SDK 11.1. The removed syscalls are all removed or marked as deprecated/old in the following list https://opensource.apple.com/source/xnu/xnu-4570.1.46/bsd/kern/syscalls.master which according to https://opensource.apple.com/release/macos-1013.html is the kernel version used for macOS 10.13. The poll function was moved around because I missed to regenerate the zsyscall_darwin_*.go files in CL 74290. Change-Id: I747c8c842f78f3db8d25b46759265aa99da9d739 Reviewed-on: https://go-review.googlesource.com/75972 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Nov, 2017 1 commit
-
-
Tobias Klauser authored
Now that go tip runs vet during go test (CL 74356), the x/sys/windows test fails due to the following vet error: syscall_windows_test.go:84: Fatal call has possible formatting directive %x Fix it by using Fatalf instead. Change-Id: I02536312c00bc9002400b29b5b5acef879a0e51a Reviewed-on: https://go-review.googlesource.com/75973Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 03 Nov, 2017 2 commits
-
-
Tobias Klauser authored
Fixes the following vet error: syscall_linux_test.go:181: golang.org/x/sys/unix.Timeval composite literal uses unkeyed fields Change-Id: I6973ad4ecd54b542074610a755573f98eb23f343 Reviewed-on: https://go-review.googlesource.com/75790 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Change-Id: I7b1ff99b46273ad32c26247a2435e674c9e42789 Reviewed-on: https://go-review.googlesource.com/75810 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 02 Nov, 2017 2 commits
-
-
Tobias Klauser authored
Use to setarrlist to implement UtimesNanoAt with nanosecond precision (on Mac OS 10.13 with APFS). Translate AT_SYMLINK_NOFOLLOW to FSOPT_NOFOLLOW correspondingly. Change-Id: I1468a1f4eecb53b2280ff6329b1ec64e204701f1 Reviewed-on: https://go-review.googlesource.com/75650 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Follow CL 74952 for x/sys/unix. Update golang/go#22528 Change-Id: Id146da75b80a64cfa4eac28e9bb7b3befe944718 Reviewed-on: https://go-review.googlesource.com/75610 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 31 Oct, 2017 3 commits
-
-
Tobias Klauser authored
Poll is now supported for all unix systems. Also enable TestPoll for all of them. Change-Id: Id6250702bf0d29c49fbeeed4cca21d232b72666a Reviewed-on: https://go-review.googlesource.com/74310 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Now that all BSD flavors support Poll, move the common implementation into syscall_bsd.go Change-Id: Id62a6163d41ef24e33f96540b661002b095a2fa1 Reviewed-on: https://go-review.googlesource.com/74290 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
In order to make conversion to string easier, change the Utsname members from int8 array to byte array. Also add a test on Linux for Uname and the string conversion of the Utsname members. Fixes golang/go#20753 Change-Id: Iec793dfb4a6dd8f3523cf0b6284a6162074f2e9e Reviewed-on: https://go-review.googlesource.com/74331 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 28 Oct, 2017 1 commit
-
-
Tobias Klauser authored
Tested with TestPoll extracted from syscall_linux_test.go. Now that Poll is supported on all unix flavors, TestPoll can be moved to syscall_unix_test.go in a successive CL. Change-Id: Ibd5ff3f45198008464522c3b165f2af7865ce81e Reviewed-on: https://go-review.googlesource.com/73881Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 27 Oct, 2017 7 commits
-
-
Tobias Klauser authored
Tested with TestPoll extracted from syscall_linux_test.go. Once Poll is supported on all OSes this test can be moved to syscall_unix_test.go. Change-Id: Ic7ad2e749039e2e81612c2085d6fab73581d59f9 Reviewed-on: https://go-review.googlesource.com/73872 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Update go to 1.9.2 in the Dockerfile used to generate the Linux go files. The update also changes some zerror definitions: RLIM_INFINITY is assigned to Rlimit.{Cur,Max} which are both uint64 on all architectures. PR_SET_PTRACER_ANY is used with Prctl which expects an uintptr. With the current version, an "constant -1 overflows uint64" error would result if these constants were used directly without type conversion. Change-Id: Iefd23a44e983b4fcf210121776531df225014112 Reviewed-on: https://go-review.googlesource.com/73873 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
If generating ptrace definitions for a particular pair fails for any reason, a success message would still be shown. Avoid it in case there was a failure. Change-Id: Ica59c888586c055e8ef333a0db00bde2c4d15145 Reviewed-on: https://go-review.googlesource.com/73874 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
CL 62111 removed the _SC_PAGESIZE definition from the types_*.go files but did not re-generate ztypes_linux_sparc64.go. Remove the definition manually because linux/spar64 is not yet covered by the new Docker-based build system. Change-Id: I1ddebc3efa0d9d23c925ca84de31f63a3a883a99 Reviewed-on: https://go-review.googlesource.com/73876 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Add godoc comments for Time{spec,val} methods Unix and Nano. Also move them to timestruct.go to the other Time{spec,val} related functionality. Change-Id: I3b18c5d1bfb235ea4fea25a18fc34b85c21bb365 Reviewed-on: https://go-review.googlesource.com/73871 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Fix the header in the generated zptrace*_linux.go files to consistently use single space after a period. Change-Id: I527f27a68e14bc103639b1dd5734ec06ae267e01 Reviewed-on: https://go-review.googlesource.com/73875 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Tested with TestPoll extracted from syscall_linux_test.go. Once Poll is supported on all OSes this test can be moved to syscall_unix_test.go. Change-Id: I61ec50c5ea7d6db43f7688ed925d6ed26a6bbc3a Reviewed-on: https://go-review.googlesource.com/73650 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 26 Oct, 2017 3 commits
-
-
Christopher Koch authored
Change-Id: I7ae67ce410ae2816c2f3e8ecb26e46265aa11d7f Reviewed-on: https://go-review.googlesource.com/73771Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Ian Lance Taylor authored
For pairs of GOARCH values that can execute each other's binaries on the same system, such as 386 and amd64, add the definitions and functions required to fetch and set registers when debugging either variant. Fixes golang/go#9739 Change-Id: I7896ddef7d341ffaee56614ebd080dc38c708ed4 Reviewed-on: https://go-review.googlesource.com/73555 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Alex Brainman authored
Copy CL 17488 into golang.org/x/sys/windows. Change-Id: I4c6bf14982dd1fc2b8aa70ec16ad7b7c18e76bae Reviewed-on: https://go-review.googlesource.com/73353Reviewed-by: Tim Cooper <tim.cooper@layeh.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 25 Oct, 2017 1 commit
-
-
Kieran Colford authored
Some of LazyProc's methods will panic if the procedure cannot be found. This patch documents that fact. Change-Id: If446a61e001ae04eaba0ff08b512df4def8a00b7 Reviewed-on: https://go-review.googlesource.com/73450Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-