- 14 Mar, 2018 7 commits
-
-
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>
-
Tobias Klauser authored
Change-Id: Id2ae518a5f6abfdae56398a3ef7f205267057257 Reviewed-on: https://go-review.googlesource.com/100616 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Tobias Klauser authored
Change-Id: Ibf23c327f1420a55a9de7073e9a4f444fb8f3c1f Reviewed-on: https://go-review.googlesource.com/100615 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
Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on dragonfly/amd64. This also adds some additional RLIMIT_* constants. Updates golang/go#18632 Change-Id: I7969d8ab12c07befd7b1ff0d1dbc67f6622c39b1 Reviewed-on: https://go-review.googlesource.com/100595 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: Ie4a172a36a274334a49766cc272e74bcc34ebd86 Reviewed-on: https://go-review.googlesource.com/100576 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
Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on solaris/amd64. Akin to CL 89495. Updates golang/go#18632 Change-Id: Ib80bf6376d0b7c0a5efd0f5d4a0f27e8e37d8abe Reviewed-on: https://go-review.googlesource.com/100556 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
Updates golang/go#24381 Change-Id: I9bd15bb7961f02af12a45b12ac62e07d059c744e Reviewed-on: https://go-review.googlesource.com/100555 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 13 Mar, 2018 1 commit
-
-
Tobias Klauser authored
The basic Getrlimit functionality is already tested in TestRlimit. Use the Linux-specific test to check whether setting RLIMIT_AS has the desired effect regarding mmap, as specified in http://man7.org/linux/man-pages/man2/getrlimit.2.html Change-Id: I3e2c5769d9144cb4059735709a89a12f42568465 Reviewed-on: https://go-review.googlesource.com/100175 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 12 Mar, 2018 1 commit
-
-
Christian Pellegrin authored
Fixes golang/go#23361 Change-Id: Ia4fb99b1ac2b109048a1b81f9b1534685f6e31a8 Reviewed-on: https://go-review.googlesource.com/100076 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 08 Mar, 2018 3 commits
-
-
Tobias Klauser authored
Change-Id: Iae896dc32e775cb469fc3d0d367fd7c7825161ec Reviewed-on: https://go-review.googlesource.com/99516 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: I43bf3a7eafbf06b20a589ee339dae394bfea0bf6 Reviewed-on: https://go-review.googlesource.com/99515 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Michael Hudson-Doyle authored
Because you can't bind a thread to the second CPU if it's not there. Change-Id: I2af4e66667711dc9a3aa23fee073a70cdc5fdd4d Reviewed-on: https://go-review.googlesource.com/99355 Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 02 Mar, 2018 1 commit
-
-
Tobias Klauser authored
The timeout parameter might be nil, don't dereference it unconditionally. CL 97819 did the same for the syscall package. Updates golang/go#24189 Change-Id: I95a93468c7d8431abf2e9a3a9b8d0fbd1a223e0d Reviewed-on: https://go-review.googlesource.com/97820 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 24 Feb, 2018 1 commit
-
-
Shamil Garatuev authored
The existing implementation requires QUERY_VALUE and ENUMERATE_SUB_KEYS permissions to enumerate subkeys, so, using registry key name limits, Stat function could be excluded from methods body and improved method requires only ENUMERATE_SUB_KEYS permission Registry elements size limits described there: https://msdn.microsoft.com/library/windows/desktop/ms724872.aspx Fixes golang/go#23869 Change-Id: Id96beb9b0b294f01cc6eb1bb53bee5f50d02ea7e Reviewed-on: https://go-review.googlesource.com/95655Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 23 Feb, 2018 1 commit
-
-
Tobias Klauser authored
Add all IFLA_* constants defined in linux/if_link.h as of Linux kernel version 4.15. Change-Id: Ib27205cf560f40303ca9500abe73abf833fc13a8 Reviewed-on: https://go-review.googlesource.com/96595 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 22 Feb, 2018 1 commit
-
-
Tobias Klauser authored
Also use the Ubuntu 17.10 docker image and additionally install bison which is needed by the glibc build. The resulting change only consists of a few additional constants. Exclude the X86_CR3_PCID_NOFLUSH constant on 386 and amd64, though. Change-Id: I0a9b8959146273ff3b259c17bb616625a9ac8278 Reviewed-on: https://go-review.googlesource.com/96255 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 02 Feb, 2018 1 commit
-
-
Tobias Klauser authored
Same as CL 34379, SyscallNoError and RawSyscallNoError are redeclared for gccgo builds since CL 85756. Thus, move the declarations to a gc specific file. Updates golang/go#18312 Change-Id: Ia8f42b31e61a80530e5e90a44c0af32fd3452612 Reviewed-on: https://go-review.googlesource.com/91615 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 Feb, 2018 1 commit
-
-
Tobias Klauser authored
Fixes golang/go#23639 Change-Id: I7793dc50de35791a7c8af1966bb2ee4a36a2ac1c Reviewed-on: https://go-review.googlesource.com/91375 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 30 Jan, 2018 1 commit
-
-
Tobias Klauser authored
The SyscallNoError and RawSyscallNoError functions are only needed on Linux. Make sure they are not used within the generated zsyscall_*.go files if $GOOS != "linux". Updates golang/go#22924 Change-Id: I3b2aa8624895b0527dcc832b2945a8d591f0ba1a Reviewed-on: https://go-review.googlesource.com/90475 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 26 Jan, 2018 1 commit
-
-
Tobias Klauser authored
The second part of the godoc sentence appears twice. Change-Id: I119c7119ff50401eed3d7369a7709d8c779a7f9e Reviewed-on: https://go-review.googlesource.com/90095Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 25 Jan, 2018 3 commits
-
-
Tobias Klauser authored
Add rudimentary godoc for all existing Sockaddr* types implementing the Sockaddr interface. Change-Id: Ida7d1e8756477b54fc773f4bc978002c3d4a376d Reviewed-on: https://go-review.googlesource.com/89775Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Copy zsyscall_plan9_arm.go from syscall and add asm_plan9_arm.s which just contains jumps to the corresponding syscall functions. Change-Id: I0eed6449c622ae3f6e73abcb43edfd306e96753f Reviewed-on: https://go-review.googlesource.com/89795 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Garret Kelly authored
The sockaddr_l2 address type is used with AF_BLUETOOTH sockets using the BTPROTO_L2CAP protocol. Change-Id: I263cfd3bb5920a8c1187ead6c2e0527276575d9f Reviewed-on: https://go-review.googlesource.com/89475Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 24 Jan, 2018 1 commit
-
-
Garret Kelly authored
Fixes golang/go#18632. Change-Id: I9d07937dc93f860b09a99a86fe517b85f4dcd1b2 Reviewed-on: https://go-review.googlesource.com/89495Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 22 Jan, 2018 1 commit
-
-
Tobias Klauser authored
Just call syscall's implementation instead of duplicating ParseDirent and the GOOS-specific private functions needed by it. Change-Id: Icf49769390929463323608e093dd2a3d1c0ae4d3 Reviewed-on: https://go-review.googlesource.com/88475 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 17 Jan, 2018 1 commit
-
-
Ryan Zhang authored
CL 87555 added the AT_STATX_* constants which are garbled on linux/s390x due to the replacement regex in mkpost.go being too broad. Adjust the regex to only match on word boundaries. Change-Id: I898547fbbbc5d02965e86300e9144fb65207ab33 Reviewed-on: https://go-review.googlesource.com/87876Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 15 Jan, 2018 2 commits
-
-
Tobias Klauser authored
statx(2) allows to get enhanced file status information (not currently available through the existing stat syscalls), lightweight stat, heavyweight stat. The Statx_t type used by Statx has consistent field sizes on all arches (with year-2038-capable timestamps) and is closer to the BSD implementation of Stat_t. See http://man7.org/linux/man-pages/man2/statx.2.html for details. The syscall was added in Linux kernel 4.11. See https://github.com/tklauser/statx for an example of how this function and types can be used to report stat(1)-like file status information. Change-Id: I9e9642b5b42a393f94fd532453888ce9ba4f0003 Reviewed-on: https://go-review.googlesource.com/87555 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Tobias Klauser authored
Change-Id: Iddb6fbcb0f0f834fa9fd7ef95d57aa8c7b4007fd Reviewed-on: https://go-review.googlesource.com/87575 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 10 Jan, 2018 1 commit
-
-
Tobias Klauser authored
Follow CL 2810 Change-Id: Ic833681c7abd8973e952aaad40986fd3385c94db Reviewed-on: https://go-review.googlesource.com/86895 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 09 Jan, 2018 2 commits
-
-
Matt Layher authored
The cgroupstats structure is available via Linux's generic netlink taskstats interface. For more information, please see: https://www.kernel.org/doc/Documentation/accounting/cgroupstats.txt. Fixes golang/go#23388. Change-Id: I8a05a3875209e99a427d54049eacc98f415e44cf Reviewed-on: https://go-review.googlesource.com/86975 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Tamir Duberstein authored
Initially added in https://golang.org/cl/9842 and subsequently broken in https://golang.org/cl/85756. Fixes golang/go#23361 Change-Id: Id458efdb4a9ffc5f038b4070fd514de9f78c17d7 Reviewed-on: https://go-review.googlesource.com/86755Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 08 Jan, 2018 2 commits
-
-
Tobias Klauser authored
Unsetenv was in its own file for Go 1.4 compatibility. This version is no longer supported, so move Unsetenv with the other environment specific functions. Change-Id: I8b6621993f2ab0fbafe900b19dcaee7b5b3ed26f Reviewed-on: https://go-review.googlesource.com/86540 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
Unsetenv was in its own file for Go 1.4 compatibility. This version is no longer supported, so move Unsetenv with the other environment specific functions. Change-Id: I63d67e2a9e4d7651be79c2e72a7f27fe0fac68c4 Reviewed-on: https://go-review.googlesource.com/86539 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Jan, 2018 1 commit
-
-
Tobias Klauser authored
Unsetenv was in its own file for Go 1.4 compatibility. This version is no longer supported, so move Unsetenv with the other environment specific functions. Change-Id: I81ed5182297598a7b3859711211ec8ef194bbe9a Reviewed-on: https://go-review.googlesource.com/86538 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 06 Jan, 2018 1 commit
-
-
Brad Fitzpatrick authored
Don't use math/bits yet. Go 1.8 doesn't have it, and Go 1.8 is still supported for a few weeks. Fixes golang/go#23353 Change-Id: Ie69163f6f6dca95d4652441849e0152d2e346cd0 Reviewed-on: https://go-review.googlesource.com/86477Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 05 Jan, 2018 1 commit
-
-
Tobias Klauser authored
SchedGetaffinity and SchedSetaffinity are used to get and set a thread's CPU affinity mask. See http://man7.org/linux/man-pages/man2/sched_setaffinity.2.html for details. Also add a manual implementation of CpuSet_t and the corresponding accessor functions (mimicking the CPU_* macros from sched.h). Fixes golang/go#11243 Change-Id: Ia5abc0053cd06810b3b09ab65c27434f5323c1ad Reviewed-on: https://go-review.googlesource.com/85915 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>
-
- 04 Jan, 2018 1 commit
-
-
Junya Hayashi authored
28a72765 causes following error with GOARCH=arm64 environment. # golang.org/x/sys/unix asm: InitTextSym double init for "".Syscall asm: symbol "".Syscall listed multiple times asm: invalid encoding for argument 00004 (/home/junya/go/src/golang.org/x/sys/unix/asm_linux_arm64.s:21) CALL runtime.entersyscall(SB) asm: invalid encoding for argument 00048 (/home/junya/go/src/golang.org/x/sys/unix/asm_linux_arm64.s:32) CALL runtime.exitsyscall(SB) asm: makeFuncDebugEntry double process "".Syscall asm: assembly failed Change-Id: Ic7895fecc5f4b1fd6ebef63603c5f720227f5130 Reviewed-on: https://go-review.googlesource.com/86135Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 03 Jan, 2018 1 commit
-
-
Tobias Klauser authored
Add the SyscallNoError and RawSyscallNoError wrapper functions which are used for syscalls that don't return an error. Also convert all applicable syscalls to use these wrappers. Updates golang/go#22924 Change-Id: Ie143abc99de8d12d36b67ac278e08d7565f73ce0 Reviewed-on: https://go-review.googlesource.com/85756 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>
-
- 22 Dec, 2017 2 commits
-
-
Tobias Klauser authored
The var e error declaration is shadowed inside the for loop, so the outer e always stays nil. Also, there is no need to reset the inner e in case of EPERM, as it is reset by ExattrList* on the next iteration anyhow. Change-Id: Ib395e34b5a390a5d37bee334c44f6f87d3add2a0 Reviewed-on: https://go-review.googlesource.com/85295 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: I9aa4ac170c361e56e36bded0cc13fb99346f70cf Reviewed-on: https://go-review.googlesource.com/85275 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-