- 17 Sep, 2015 1 commit
-
-
Shawn Walker-Salas authored
Various syscalls offered by x/sys/unix on Linux are not available on Solaris and should be, such as Mkfifo, Getwd(), Futimes() and others. In particular, all of the *at() variants of existing functions were added where appropriate. Getgroups() was fixed to use the correct value for its sanity check on the maximum number of groups. Utimesnano() was updated to use the native Solaris utimensat function for setting nanosecond-precision time. Utimes() was updated to have the same error semantics and checking as other platforms. Getgroups(), anysocktoaddr(), and Recvmsg() were fixed to check the return value before assuming syscall failure instead of relying solely on errno being set. mksyscall_solaris.pl needed some updates to better match the output of the one found in syscall. mkerrors.sh needed some updates to work out of the box on Solaris, matching those recently done to the one in syscall. The signatures (names) of some function parameters were changed to be consistent with other platforms for the sake of documentation. Fixes #8609 Change-Id: I9e4e2fee6d3ecfad9f4d845a5702ffde5166e804 Reviewed-on: https://go-review.googlesource.com/14643Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
-
- 10 Sep, 2015 1 commit
-
-
Shawn Walker-Salas authored
In preparation for issues such as #10180, Getpagesize() needs to be fixed to return the actual system's page size instead of assuming it's always 4096. This is particularly important for future platform support on Solaris. Fixes #12076 Change-Id: I78205165909529215fe93ed6ba56e9c3ee1c2abb Reviewed-on: https://go-review.googlesource.com/14483Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 09 Sep, 2015 1 commit
-
-
Alex Brainman authored
Allow registry blobs to be as large as 500MB Copy of CL 14287. Fixes golang/go#12493 Change-Id: I37b82fcf90ff2acef83c66016375fcae15e6eefc Reviewed-on: https://go-review.googlesource.com/14288Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 02 Sep, 2015 2 commits
-
-
Aaron Jacobs authored
These are already exposed on Linux. I believe they were left out of darwin because fchmodat didn't exist on older versions of XNU. Change-Id: I166f2b23270937c1b6cc3bd73e7f7b72d2d488e9 Reviewed-on: https://go-review.googlesource.com/14092Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Aaron Jacobs authored
This makes the script resistant to changes in the SDK location, which apparently happens from time to time. While I was at it, made another cosmetic touch-up: use a .gitignore file to stop `git status` from showing the _obj/ directory generated by mkall.sh. Change-Id: Ia706114d94e324ab443f6f5d6aa7c0c9f8a84620 Reviewed-on: https://go-review.googlesource.com/14192Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 Sep, 2015 2 commits
-
-
Aaron Jacobs authored
I did this on OS X 10.10.5 (14F27) using the OS X 10.10 SDK included in Xcode 6.4 (6E35b) for syscall numbers. I believe this SDK is intended for 64-bit Macs, but the syscall numbers aren't likely to vary. See also the discussion in this thread: https://groups.google.com/d/topic/golang-dev/738LXeykFsM/discussion This commit contains the same SYS_SYSCTL -> SYS___SYSCTL workaround found in commit 9ef4b6c1; see its description for more info. Change-Id: I952ae56032033b49f8910281c68dcc72abb2d106 Reviewed-on: https://go-review.googlesource.com/14151Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Aaron Jacobs authored
I did this on OS X 10.10.5 (14F27) using the iOS SDK included in Xcode 6.4 (6E35b). This commit contains the same SYS_SYSCTL -> SYS___SYSCTL workaround found in commit 9ef4b6c1; see its description for more info. Change-Id: I4dddc2a6d030ce297ee711f4430ec9db3abcda50 Reviewed-on: https://go-review.googlesource.com/14094Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
-
- 31 Aug, 2015 2 commits
-
-
Aaron Jacobs authored
In commit e3fe6f5d I manually renamed SYS_SYSCTL to SYS___SYSCTL so that syscall_bsd.go would continue to build, despite a rename of __sysctl to sysctl somewhere between these two XNU versions: http://www.opensource.apple.com/source/xnu/xnu-2422.90.20/bsd/kern/syscalls.master http://www.opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/kern/syscalls.master In this commit I add a workaround that doesn't require manual edits to autogenerated output, so regenerating the output should now cause no diffs. Change-Id: I0286484e7efcf9762ce39e5dcc7a8366e3798a77 Reviewed-on: https://go-review.googlesource.com/14091Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Aaron Jacobs authored
I did this on OS X 10.10.5 (14F27) using the 10.10 SDK included in Xcode 6.4 (6E35b). This required removing a C include from mkerrors.sh, since it doesn't exist on either of my two systems. I spot checked the syscall number changes against this definitive list, which is for approximately my kernel version: http://www.opensource.apple.com/source/xnu/xnu-2782.20.48/bsd/kern/syscalls.master Everything I examined checked out, including the removed syscalls being marked as "old" or being described in comments as no longer existing. There is one exception to the output being cleanly autogenerated: I have manually renamed SYS_SYSCTL back to SYS___SYSCTL, the name used previously and still used by syscall_bsd.go. Because it would distract from this CL, I will fix this in an upcoming CL. Change-Id: I0168f608cab714aa5981b3e7d08d8fd84888d0d5 Reviewed-on: https://go-review.googlesource.com/14006Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 30 Aug, 2015 1 commit
-
-
Daniel Johansson authored
This CL includes changes from: https://golang.org/cl/13929 https://golang.org/cl/13854 Part of fixing https://golang.org/issue/12015 Change-Id: I62e00e165d97d2349c89a783aed7fcbe9e0abd34 Reviewed-on: https://go-review.googlesource.com/14016 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 24 Aug, 2015 1 commit
-
-
Alex Brainman authored
copy of CL 13828 change Change-Id: I48ea36171281eed8e59b92e130c762142fb94604 Reviewed-on: https://go-review.googlesource.com/13829Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 21 Aug, 2015 1 commit
-
-
Ken Sedgwick authored
Fixes golang/go#12255. Change-Id: Ie920d655de2531e9ddbd0bedcf34eaa8c9cace5a Reviewed-on: https://go-review.googlesource.com/13816Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 20 Aug, 2015 1 commit
-
-
Ken Sedgwick authored
These are needed by boltdb. Change-Id: Ie6afa51dbf6436bb014f53f6b56ee2de6a06827d Reviewed-on: https://go-review.googlesource.com/13720Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
-
- 19 Aug, 2015 1 commit
-
-
Shawn Walker-Salas authored
CL 9184 changed the runtime and syscall packages to link Solaris binaries directly instead of using dlopen/dlsym but failed to update sys/unix to reflect these changes. This changes the Solaris port to use direct linking as supported by Go 1.5. Fixes golang/go#10086 Change-Id: I6747ed939775b18fd967f81853c7d84537aa3842 Reviewed-on: https://go-review.googlesource.com/13400Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
-
- 30 Jul, 2015 1 commit
-
-
Dave Cheney authored
Updates #11918 Replace calls to lchown(2) with fchownat(2) for linux/arm64 as the former is not suppored. This is a companion to CL 12833 which is ready to be applied to the main repo, and verified by CL 12834 which can be applied once this change and CL 12833 have landed. Change-Id: I63de3d0da1e4b4e1f253e51e0ed8e0cd0e56d63a Reviewed-on: https://go-review.googlesource.com/12837Reviewed-by: Rob Pike <r@golang.org>
-
- 27 Jul, 2015 1 commit
-
-
Rob Pike authored
Fixes golang/go#11830. Change-Id: Ie6e9f82d05b7c04092b6ee6117238873b746380e Reviewed-on: https://go-review.googlesource.com/12690Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 24 Jul, 2015 1 commit
-
-
Matt Layher authored
Fixes golang/go#11830. Change-Id: Ie7ffd4579a7b8143ca85a30d24acd3e2e7eece78 Reviewed-on: https://go-review.googlesource.com/12648Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-
- 21 Jul, 2015 1 commit
-
-
Alex Brainman authored
Second FormatMessage parameter lpSource is uintptr not uint32. Update golang/go#11147. Change-Id: Icaa67abaed93efdad41564b21f8e511e8f9694b1 Reviewed-on: https://go-review.googlesource.com/11165Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 12 Jun, 2015 1 commit
-
-
Alex Brainman authored
It seems some Windows versions requires you to be an Administrator to manage services. Just google for "openscmanager access denied windows 2008" or similar. Fixes golang/go#11156. Change-Id: I4b09d244a61179ece7a1319234e5c3199423cbe9 Reviewed-on: https://go-review.googlesource.com/10933Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 18 May, 2015 3 commits
-
-
Shenghou Ma authored
Fixes golang/go#10239. Change-Id: I3ae657b57ca7bef31207780477c44939c0bdc8b5 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/10185Reviewed-by: Rob Pike <r@golang.org>
-
Shenghou Ma authored
Fixes golang/go#10813. Change-Id: I3ae657b57ca7bef31207780477c44939c0bdc8b4 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/10184Reviewed-by: Rob Pike <r@golang.org>
-
Shenghou Ma authored
Change-Id: I62774b8ee0c1a7cc1a3b7009ca860e3fd64a6564 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/10182Reviewed-by: Rob Pike <r@golang.org>
-
- 17 May, 2015 1 commit
-
-
Shenghou Ma authored
Built with 3.18 linux kernel headers on Gentoo. Change-Id: Ic21a315eb7569c6682f5cb2c991f0966245197f9 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/10044Reviewed-by: Rob Pike <r@golang.org>
-
- 15 May, 2015 5 commits
-
-
David du Colombier authored
Make Plan 9 implementation similar to Unix. Fixes golang/go#10803. Change-Id: Ib2f069a68370792daf926ec2a393f9cf16c2816b Reviewed-on: https://go-review.googlesource.com/10104Reviewed-by: Rob Pike <r@golang.org>
-
Alex Brainman authored
This CL includes changes from: http://golang.org/cl/9805 http://golang.org/cl/9806 http://golang.org/cl/9901 Change-Id: I1f41a8215f9f760c0d3b84596e37bf48bf4c9bc2 Reviewed-on: https://go-review.googlesource.com/10132Reviewed-by: Rob Pike <r@golang.org>
-
Alex Brainman authored
Fixes build. Change-Id: Ib090c951b192ec5d4e145aa2d302d140f99b1417 Reviewed-on: https://go-review.googlesource.com/10099Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Alex Brainman authored
Make windows implementation similar to unix. Updates golang/go#10803 (0intro will close the issue) Change-Id: I6f6a7b1c84f54b1ec92f0346a9998df34235c71a Reviewed-on: https://go-review.googlesource.com/10077Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
Change-Id: I8ed64dcb1c1a2119ce6f15fa1be55fbe0b0c637e Reviewed-on: https://go-review.googlesource.com/10087Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
- 14 May, 2015 4 commits
-
-
Ian Lance Taylor authored
Go1.4 does not recognize arm64 and ppc64le as valid GOARCH values, so we need explicit build tags. Change-Id: I1a886c132ae398d9f92b2c2b33d2a4827bbdb9d4 Reviewed-on: https://go-review.googlesource.com/10083Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Alex Brainman authored
Fixes plan9 and windows build. Change-Id: I3d913441a4f3f3f3da82ab74ef165b91d05eb8d3 Reviewed-on: https://go-review.googlesource.com/10078Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Alex Brainman authored
This is a copy of https://golang.org/cl/154020043 in the syscall package. Fixes golang/go#10804 Change-Id: I6f6177e30c105c8065fdc8cc351e899090e160a9 Reviewed-on: https://go-review.googlesource.com/10076Reviewed-by: Minux Ma <minux@golang.org>
-
Ian Lance Taylor authored
This incorporates changes from https://golang.org/cl/123290043 and https://golang.org/cl/127320043. Files generated on Ubuntu Trusty. Change-Id: I669c60714e857ef5f06515cd3b65dfc94785e179 Reviewed-on: https://go-review.googlesource.com/10060Reviewed-by: Rob Pike <r@golang.org>
-
- 13 May, 2015 6 commits
-
-
Ian Lance Taylor authored
This incorporates generation script changes from http://golang.org/cl/7143. Files generated on Ubuntu Trusty. Change-Id: I28cfa0993573e1b280c549a67f453c0fb01dee2f Reviewed-on: https://go-review.googlesource.com/10038Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
This applies the following CLs from the syscall package: http://golang.org/cl/9962 http://golang.org/cl/9966 http://golang.org/cl/9924 It also adds arm64/ppc64 support to mkall.sh and mksysnum_linux.pl. Change-Id: I84fbfde2a2876dbf6d16c6159e847195c274b396 Reviewed-on: https://go-review.googlesource.com/10037Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
This is a copy of http://golang.org/cl/9870 in the syscall package. This is in preparation for arm64 support, as the arm64 Linux kernel does not have an inotify_init system call, only inotify_init1. Update golang/go#10150. Change-Id: I9224a094af79adbb2f5714ad977b195d5a941eb0 Reviewed-on: https://go-review.googlesource.com/10036Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
This copies http://golang.org/cl/8723 from the syscall package. Quoting the original CL: This is clumsy, but currently cover tool fails as: $ go test -run=none -cover syscall syscall_linux_amd64.go:15: can only use //go:noescape with external func imp FAIL syscall [build failed] This happens because cover tool mishandles //go: comments. r and gri said that fixing cover is infeasible due to go/ast limitations. So at least fix the offending code so that coverage works. This come up in context of coverage-guided fuzzing which works best with program-wide coverage. Change-Id: Id9e243968a4eb7ae75a585877fdf3192c89e419c Reviewed-on: https://go-review.googlesource.com/10035Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
This brings over three CLs from the main syscall package: http://golang.org/cl/5833 http://golang.org/cl/5835 http://golang.org/cl/5837 Pipe, Pipe2, and Dup2 are moved from syscall_linux.go to the GOARCH specific variants. On 386 and amd64, Linux kernel version 2.6.23 (the documented minimum Linux kernel version the Go distribution supports) does not support the pipe2 system call, so Pipe continues to call pipe. On ARM, Pipe now calls pipe2. Several system calls are reimplemented in terms of the *at syscalls, passing AT_FDCWD to indicate that pathnames are to be interpreted relative to the current directory. The *at syscalls were added in Linux kernel version 2.6.16. This is in preparation for arm64 support, as the arm64 Linux kernel does not provide the traditional syscall variants. Change-Id: Id6bc6097dc5f4324cd9e429c5e1f3a411a08ce42 Reviewed-on: https://go-review.googlesource.com/10032Reviewed-by: Rob Pike <r@golang.org>
-
Ian Lance Taylor authored
Bring in http://golang.org/cl/138650044 from syscall package. Change-Id: I554b0b31b981c682b6826644564971321a55c9e4 Reviewed-on: https://go-review.googlesource.com/10030Reviewed-by: Rob Pike <r@golang.org>
-
- 12 May, 2015 2 commits
-
-
Ian Lance Taylor authored
Port http://golang.org/cl/9714 from the main syscall package. Change-Id: I85e3f119777b0e1f52dfd10365fd30c900120dc2 Reviewed-on: https://go-review.googlesource.com/9961Reviewed-by: Minux Ma <minux@golang.org>
-
Ian Lance Taylor authored
I meant to do this earlier but forget to "git add". Change-Id: I14b777b5b9fa5b121809c5821719da3ec4a5e0ce Reviewed-on: https://go-review.googlesource.com/9960Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-