- 09 May, 2018 1 commit
-
-
Hana (Hyang-Ah) Kim authored
From https://storage.googleapis.com/go-build-log/ebe363d0/misc-vet-vetall_b459ec91.log cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s:16: [amd64] Syscall: wrong argument size 64; expected $...-56 cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s:19: [amd64] Syscall6: wrong argument size 88; expected $...-80 cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s:22: [amd64] Syscall9: wrong argument size 112; expected $...-104 cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s:25: [amd64] RawSyscall: wrong argument size 64; expected $...-56 cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s:28: [amd64] RawSyscall6: wrong argument size 88; expected $...-80 Change-Id: I5c2264154e819a124aade5d18d261b7934b0090a Reviewed-on: https://go-review.googlesource.com/112556Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 07 May, 2018 1 commit
-
-
Tobias Klauser authored
The messages contain no format string, so there is no need to use t.Fatalf. Change-Id: I29098c04797f919784b732af84a63fbaed671558 Reviewed-on: https://go-review.googlesource.com/111776 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 May, 2018 1 commit
-
-
Tobias Klauser authored
Add ErrnoName and SignalName to get errno and signal name strings from syscall.Errno and syscall.Signal values, respectively. This repurposes the errors and signals vars (because they are not used within x/sys/unix currently) and turns them into slices of struct, containing errno/signal number, name and description. ErrnoName and SignalName can then be trivially implemented using sort.Search. Renaming errors to errorList additionaly allows to avoid package aliases for the errors package. Fixes golang/go#25134 Change-Id: Ie195872793f44c437f0f175ccfaa13a2546338c5 Reviewed-on: https://go-review.googlesource.com/110875 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 May, 2018 1 commit
-
-
Alex Brainman authored
Second argument of servicemain is a pointer. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms685138(v=vs.85).aspx So amd64 assembler code should use MOVQ to read that value. I probably copied 386 assembler code into amd64 and did not adjust the code. Broken code was used to pass parameters to the service, so add some tests to verify that parameter passing works. Fixes golang/go#24575 Change-Id: I89f8cad026ea13f8a5d78ff3e24b7236e27fc91f Reviewed-on: https://go-review.googlesource.com/110160 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 30 Apr, 2018 2 commits
-
-
Andreas Auernhammer authored
This CL introduces a new cpu package for CPU/platform feature detection. The cpu package is basically a copy of `internal/cpu` of the standard library. Revision: bf86aec25972f3a100c3aa58a6abcbcc35bdea49 This CL does not export ARM64 and PPC64 feature detection since at the moment ARM64/PPC64 requires standard library support. Updates golang/go#24843 Change-Id: I11bc1ca60b116e902c941b5887c00870dbb1f899 Reviewed-on: https://go-review.googlesource.com/107015Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
The stat syscall is disallowed by Android's seccomp policy on linux/amd64. Use the fstatat syscall with AT_FDCWD and zero flags to achieve the same behavior. CL 109835 did the same for package syscall. Change-Id: Iaa7d0dbf17ade4803f59b4361973ce627bcb65b4 Reviewed-on: https://go-review.googlesource.com/110061 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 27 Apr, 2018 1 commit
-
-
Jason A. Donenfeld authored
This is yet another syscall that needs to be changed around for Android's seccomp. We already do this in MIPS64 and ARM64, but apparently forgot about AMD64. Change-Id: I42c8a4653a55d4714dacfaf7add14012f428c992 Reviewed-on: https://go-review.googlesource.com/109835Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 25 Apr, 2018 1 commit
-
-
Ian Lance Taylor authored
Change-Id: If795a53b8532c35731f18b9a94ca8c53a4bc23c2 Reviewed-on: https://go-review.googlesource.com/109357 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 20 Apr, 2018 1 commit
-
-
Matt Layher authored
These types and constants are taken from hdreg.h, and will enable querying and manipulation of block devices on Linux. Fixes golang/go#24971 Change-Id: Iafe8f81ba7ab9f1e127743dab6a9fb1912874a5c Reviewed-on: https://go-review.googlesource.com/108455 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 19 Apr, 2018 1 commit
-
-
Jason A. Donenfeld authored
By simply rearranging the logic, we avoid the overhead of a superfluous call to getsockopt. For, if p is already non empty, there's no point in having to check if we need to attach dummy payload. This has performance benefits when using send/recvmsg for high speed communications. Change-Id: If47ab5322464aad8e6d2603a369e95327223211f Reviewed-on: https://go-review.googlesource.com/108337Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 18 Apr, 2018 2 commits
-
-
Matt Layher authored
Change-Id: I0cd02100844d7565f6fc18278ff52a8cceaacec5 Reviewed-on: https://go-review.googlesource.com/107938Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Matt Layher authored
This structure is used with setsockopt in BGP speaker implementations. For more information, please see: https://criticalindirection.com/2015/05/12/tcp_md5sig/. Fixes golang/go#24830 Change-Id: Ic2137e843ad502dbe9a4227362b63164789c5877 Reviewed-on: https://go-review.googlesource.com/106656Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 17 Apr, 2018 1 commit
-
-
Tobias Klauser authored
As spotted by Brad Fitzpatrick, CL 106838 unexported the value field of Fsid and Sigset_t, but these types would be useless without any exported fields. Re-export them via an exception in mkpost.go Change-Id: I30d3c3b81c8c1b6377f8aa55cad816e3486a4395 Reviewed-on: https://go-review.googlesource.com/107415 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>
-
- 16 Apr, 2018 2 commits
-
-
Ivan Markin authored
Change-Id: I9f0ca3c2c1cd79f0c996ebbc7f79a42f740e0d2c GitHub-Last-Rev: ebd0046a4fefcd70d4b21f043a350c6f4df21cfd GitHub-Pull-Request: golang/sys#10 Reviewed-on: https://go-review.googlesource.com/107302Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Adam Sindelar authored
This adds a wrapper around perf_event_open, exported constants and two structs: - perf_event_attr, used to configure the syscall - perf_event_mmap_page to coordinate the kernel's mmap ring buffer Change-Id: Ife7ded8344de9e3eb74441bd51ab9a04c81b4965 Reviewed-on: https://go-review.googlesource.com/105756Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 14 Apr, 2018 1 commit
-
-
Tobias Klauser authored
On linux/s390x these fields are already hidden. Don't export them on any other platform either. Preparatory CL for https://golang.org/cl/106656 Change-Id: I421a0ba41ff46081e2576be212e246a4dd982a67 Reviewed-on: https://go-review.googlesource.com/106838 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 13 Apr, 2018 1 commit
-
-
Adam Sindelar authored
Change-Id: I3ecf7802c152b82c0d40f8b1bebcb25feda7fb13 Reviewed-on: https://go-review.googlesource.com/106315 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: Tobias Klauser <tobias.klauser@gmail.com>
-
- 06 Apr, 2018 1 commit
-
-
Tobias Klauser authored
Also avoid installing recommended packages if possible to silightly reduce the Docker image size. Change-Id: I7a3ea33f6501cf063b1aa0324b5928f96241d048 Reviewed-on: https://go-review.googlesource.com/105077 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Apr, 2018 3 commits
-
-
Philip Brown authored
Fixes golang/go#24649 Fixes golang/go#24677 Change-Id: I3faa74ab68e093a097c3f2a8ec7c054431bdfb3f Reviewed-on: https://go-review.googlesource.com/104736Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Move the common Getsockopt* implementations to syscall_unix.go instead of duplicating them in syscall_bsd.go and syscall_linux.go. This also makes all of them available on Solaris and adds GetsockoptByte on Linux. Change-Id: Ibf49b27be46be579e63e3b3e2ebc1504e5228d5f Reviewed-on: https://go-review.googlesource.com/104695 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Chris Koch authored
In a Linux user namespace that doesn't have UID 0 mapped, WriteMsgUnix will return an EINVAL as the uid-valid-in-uns check comes first in the kernel. Even if in a user and PID namespace, using the wrong PID in Ucred will always give EPERM. Change-Id: Ia7452bbf2911c3b9a2aa5d7df1572e8b0790ff38 GitHub-Last-Rev: 341d3f0cba0511411caffd2ac5a6c8dfb7a022ef GitHub-Pull-Request: golang/sys#7 Reviewed-on: https://go-review.googlesource.com/103857 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 29 Mar, 2018 2 commits
-
-
Tobias Klauser authored
Fixes golang/go#8760 Change-Id: Iacb5802ce6256fc5fb61b558f2d0bc0dcf593c96 Reviewed-on: https://go-review.googlesource.com/103355 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
Same was done in CL 7940 for the syscall package. Fixes golang/go#10838 Change-Id: I98efa99f57f21bdcdbfb117af66f673e37767fec Reviewed-on: https://go-review.googlesource.com/103335 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 26 Mar, 2018 1 commit
-
-
Cholerae Hu authored
Fixes golang/go#24515 Change-Id: Icac78e8f2937668c2ce2fd6a695ce44bb702b8f1 Reviewed-on: https://go-review.googlesource.com/102515 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 22 Mar, 2018 2 commits
-
-
Tobias Klauser authored
Change-Id: I8d91f4f959b03f71a8f2effdf7f1c6d1308f2217 Reviewed-on: https://go-review.googlesource.com/102135 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
Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on Darwin. Updates golang/go#18632 Change-Id: Id9d264293d0b1f1c5581aff289c6e826d63e71ef Reviewed-on: https://go-review.googlesource.com/102075 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
- 21 Mar, 2018 5 commits
-
-
Tobias Klauser authored
Change-Id: I3b32b6343e9bc0bb6a205ada9941b4bb9ef91a23 Reviewed-on: https://go-review.googlesource.com/101895 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Change-Id: I7b32bbbfc73e8e05898bd640e9e92a183c72b92b Reviewed-on: https://go-review.googlesource.com/101935 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
On Illumos, TestFchmodat fails with: --- FAIL: TestFchmodat (0.00s) syscall_unix_test.go:502: Fchmodat: unexpected error: operation not supported on transport endpoint Like Linux, Illumos doesn't support flags != 0 in Fchmodat, see https://illumos.org/man/2/chmod Adjust TestFchmodat accordingly to handle EOPNOTSUPP on Illumos. Change-Id: Icd4564497a41c4aa962cd76604b5ca2c7575d96c Reviewed-on: https://go-review.googlesource.com/101775 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 Fchmodat is available on all Unices, move TestFchmodat to syscall_unix_test.go and adjust it such that Fchmodat with AT_SYMLINK_NOFOLLOW in flags is tested where supported. Change-Id: I41ef5b874e36d84ed4866706dbba075c39aa00d4 Reviewed-on: https://go-review.googlesource.com/101615 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
Change-Id: I63889a9e4eb2c9d8846fa6e47f8c74f54ff7ede8 Reviewed-on: https://go-review.googlesource.com/101575 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 20 Mar, 2018 2 commits
-
-
Tobias Klauser authored
Change-Id: I3fd96550d588373d75e14bd554d46e2590c266fb Reviewed-on: https://go-review.googlesource.com/101596 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: If7868a3d43eed266496db8a0e2af908de77362eb Reviewed-on: https://go-review.googlesource.com/101576 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 19 Mar, 2018 1 commit
-
-
Kevin Burke authored
This should call unix.Exec, not syscall.Exec. Thanks Tobias Klauser for the spot. Change-Id: Iddae390891a66652b071e05c1a5a25bbfdb19e52 Reviewed-on: https://go-review.googlesource.com/101435 Run-TryBot: Kevin Burke <kev@inburke.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 18 Mar, 2018 2 commits
-
-
Kevin Burke authored
Currently the doc string forms one run-on sentence when viewed in a browser. Add an additional newline so the text is presented in a browser the same way it is in the source code. Change-Id: If93e45c5aec9edd195c6bf36cb757c5146368507 Reviewed-on: https://go-review.googlesource.com/101284Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Kevin Burke authored
The syscall execve has no wrapper in this library, which it seems like it should - Ian seemed to concur in CL 72550. Add a docstring and an example, because I always get confused about how to invoke the syscall. Change-Id: I6100bbbf4ace9e3e341bf186a04cc03301da9aea Reviewed-on: https://go-review.googlesource.com/101282Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 16 Mar, 2018 1 commit
-
-
Lehner Florian authored
Change-Id: I98ca1595895213bbc1f2d6bd984e48f84b23ccbc Reviewed-on: https://go-review.googlesource.com/100995Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 15 Mar, 2018 2 commits
-
-
Tobias Klauser authored
Change-Id: I3a367e9346b1469d7e577524d3306b3d21f8fc43 Reviewed-on: https://go-review.googlesource.com/100895 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
Also enable TestFstatat for all Unices now that they all implement Fstatat. Change-Id: I9722437042d5fc0df4a27d3a6a2be3d124c60057 Reviewed-on: https://go-review.googlesource.com/100617 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 14 Mar, 2018 1 commit
-
-
Andrew Bonventre authored
Updates golang/go#24185 Change-Id: Ia2de9218885e0cfeaec79ed7417475230b063df0 Reviewed-on: https://go-review.googlesource.com/100692Reviewed-by: Andrew Bonventre <andybons@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-