- 15 May, 2015 2 commits
-
-
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>
-
- 07 May, 2015 1 commit
-
-
Ian Lance Taylor authored
With these changes the package builds, and the tests pass, using gccgo on amd64 GNU/Linux. I have not tested other systems but I don't know why they wouldn't work. Change-Id: I727365daef55f158657eb89afbfcdbf3334610d1 Reviewed-on: https://go-review.googlesource.com/9842Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-
- 06 May, 2015 1 commit
-
-
Damien Neil authored
Includes 386, amd64, and arm for Linux. Change-Id: I428bfb732141448659a94dc6e2ab7a98efea507a Reviewed-on: https://go-review.googlesource.com/9766Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: David Symonds <dsymonds@golang.org>
-
- 05 May, 2015 1 commit
-
-
Peter Waller authored
This CL adds the Utimensat syscall and AT_SYMLINK_NOFOLLOW constant. This is required for setting the access/modification times on symlinks. In addition, it updates the UtimesNano function to pass 0 as the flags parameter, to avoid potentially passing junk. Change-Id: I280645f3f53173628b1e1986bc7a47bac254fcf8 Reviewed-on: https://go-review.googlesource.com/9379Reviewed-by: Rob Pike <r@golang.org>
-
- 01 May, 2015 1 commit
-
-
Alex Brainman authored
Change-Id: I58bb446aaa387b31d8a9ff4217793a170b96a7e2 Reviewed-on: https://go-review.googlesource.com/9104Reviewed-by: Rob Pike <r@golang.org>
-
- 23 Apr, 2015 1 commit
-
-
Alex Brainman authored
Change-Id: I02bfcdeac44167d1dbeb15bcd5c82111fba3f527 Reviewed-on: https://go-review.googlesource.com/9234Reviewed-by: Rob Pike <r@golang.org>
-
- 15 Apr, 2015 1 commit
-
-
Alex Brainman authored
Change-Id: Ia7c3d6250c041b95aa43ca5ca2a92251c480ef77 Reviewed-on: https://go-review.googlesource.com/8843Reviewed-by: Rob Pike <r@golang.org>
-
- 12 Apr, 2015 1 commit
-
-
David du Colombier authored
From main repo: https://go-review.googlesource.com/#/c/6350 https://go-review.googlesource.com/#/c/6385 Change-Id: Ieba5ff60fc501be9aa4739860c8fe026f8b3eb67 Reviewed-on: https://go-review.googlesource.com/8721Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 11 Apr, 2015 1 commit
-
-
David du Colombier authored
From main repo: https://go-review.googlesource.com/#/c/2167 Change-Id: I2043458a432ccd2aa8b206adc107ac7b215e355f Reviewed-on: https://go-review.googlesource.com/8720Reviewed-by: Rob Pike <r@golang.org>
-
- 10 Apr, 2015 1 commit
-
-
Yasuhiro Matsumoto authored
Related issue golang/go#10150 Change-Id: I38e3e13238624655bb828d501bc865ff8a4312e9 Reviewed-on: https://go-review.googlesource.com/7493Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 09 Apr, 2015 2 commits
-
-
Pawel Knap authored
According to ReadDirectoryChangesW documentation, this parameter is perfectly valid and its absence in current enumeration makes it incomplete. Internal flags like FILE_NOTIFY_CHANGE_EA were not added. Change-Id: I9d4182dcfa67e67289c0cc35155a64bf5e5152db Reviewed-on: https://go-review.googlesource.com/6560Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
Alex Brainman authored
From main repo: https://go-review.googlesource.com/#/c/4940 Change-Id: I56fe7f6aedc0fd350abb94299ad500fcb80c049a Reviewed-on: https://go-review.googlesource.com/8604Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 31 Mar, 2015 1 commit
-
-
Shenghou Ma authored
Because ARM ABI requires 64-bit argument to be passed in even register pairs, to avoid wasting one register between fd and advise in the usual fadvise64 syscall signature, linux/arm has its own variation that reorders the argument so that the arguments fit in six registers. While we're at it, also fix build for linux/386. Fixes golang/go#10294. Change-Id: I322e2226619c5aa9c096a1d5cb7ae1e94fd4a5a1 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/8282Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 27 Mar, 2015 3 commits
-
-
Brad Fitzpatrick authored
The previous cherry-pick merge of fadvice from Gerrit added the fadvise system calls, but from before the errno CL, which went in concurrently. Change-Id: I6f01e020bfe2930a8ea2fdbe4998ab9e2669ce14 Reviewed-on: https://go-review.googlesource.com/8199Reviewed-by: Rob Pike <r@golang.org>
-
Eric authored
Support includes 386, amd64, and arm for both Linux and FreeBSD. FreeBSD changes courtesy Dave Chapeskie <dchapeskie@gmail.com> Change-Id: I89dc18533d7178e74ae6c442a2e6272c9bd9692c Reviewed-on: https://go-review.googlesource.com/8055Reviewed-by: Rob Pike <r@golang.org>
-
Brad Fitzpatrick authored
From main repo: https://go-review.googlesource.com/#/c/6701/3 Fixes golang/go#10266 Change-Id: I141fefe7f317edcea19b588b1569fa8772237f56 Reviewed-on: https://go-review.googlesource.com/8190Reviewed-by: Rob Pike <r@golang.org>
-
- 26 Mar, 2015 1 commit
-
-
Ian Lance Taylor authored
This avoids hanging when a Go program uses a FUSE filesystem and the dup system call has to close a file descriptor. When dup uses RawSyscall then the goroutine calling dup will occupy a scheduler slot (a p structure) during the call, and may block waiting for some other goroutine to respond to the close call on the FUSE filesystem. Changing to Syscall avoids the problem. This makes Dup a tiny bit slower but is quite unlikely to make a difference for any real programs. Update golang/go#10202. Change-Id: I590c5c9a04e0a1281a85dc553c7592fa83949ac7 Reviewed-on: https://go-review.googlesource.com/8056Reviewed-by: Rob Pike <r@golang.org>
-
- 24 Mar, 2015 1 commit
-
-
Shenghou Ma authored
Some Linux architectures (e.g. arm64) don't have the getpgrp syscall, use getpgid(0) to emulate it. Update golang/go#10150. This brings CL 8022 that has been applied to the syscall package to x/sys. Change-Id: I24c6d7e8b5b2f075ca4e68b142b2e03ab8a43342 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/8023Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 23 Mar, 2015 1 commit
-
-
Dirk Gadsden authored
For golang/go#9923 Change-Id: I7562d32f1bfcc35fe86d2e5fff26845737fd9ecb Reviewed-on: https://go-review.googlesource.com/7917Reviewed-by: Rob Pike <r@golang.org>
-
- 20 Mar, 2015 2 commits
-
-
Tim Hockin authored
POSIX defines [FRWX]_OK flags as the second arg to access() (Access() here). Only F_OK was defined heretofore. This adds the missing [RWX]_OK constants. Fixes golang/go#6262 Change-Id: Ie96273db19aa21af92c46affea9509afe0efe63f Reviewed-on: https://go-review.googlesource.com/7852Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Those libraries, routing message parsers, netlink message parsers, berkeley packat filter are linux packet filter, are subsets and just for the net package of standard library. It would be better keeping, extending them at the net sub repository instead of here. Updates golang/go#10150. Change-Id: I1ca437bea2e2be7f7f8f6496d4db291629f49136 Reviewed-on: https://go-review.googlesource.com/7581Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-
- 18 Mar, 2015 1 commit
-
-
Josh Bleecher Snyder authored
See golang.org/cl/4131 for context. Change-Id: If2ba20a1adf9b40435628753ff7ca77577838813 Reviewed-on: https://go-review.googlesource.com/7760Reviewed-by: David Crawshaw <crawshaw@golang.org>
-
- 15 Mar, 2015 1 commit
-
-
Alex Brainman authored
Also remove some empty source files while we are at it. Change-Id: Ia3a35b274a0428196aee63ee2daacc533285d0ea Reviewed-on: https://go-review.googlesource.com/2530Reviewed-by: Rob Pike <r@golang.org>
-
- 14 Mar, 2015 1 commit
-
-
Mikio Hara authored
Updates golang/go#10068. Change-Id: Ide71d7dfd2ad95387c1914b89bc743cbcda7d1de Reviewed-on: https://go-review.googlesource.com/7582Reviewed-by: Rob Pike <r@golang.org>
-
- 04 Mar, 2015 1 commit
-
-
Carlos Castillo authored
Provides access to the GetComputerNameEx syscall. This mirrors the change golang.org/cl/5852 in the standard library, but provides public access to all name types provided by windows. Change-Id: I5fbad5abe721de70e9d2b5dda2fafb7a9c419220 Reviewed-on: https://go-review.googlesource.com/6320Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-
- 02 Mar, 2015 1 commit
-
-
William Orr authored
Fixes golang/go#9705 Change-Id: Ie236633e0e6912de1fbf1274fa5cb3ada6ce3055 Reviewed-on: https://go-review.googlesource.com/6370Reviewed-by: Minux Ma <minux@golang.org>
-
- 20 Feb, 2015 1 commit
-
-
Andrew Gerrand authored
Change-Id: I54489b2beda898103e622316d3095b54393039d6 Reviewed-on: https://go-review.googlesource.com/5414Reviewed-by: Minux Ma <minux@golang.org>
-