- 21 Dec, 2018 1 commit
-
-
Keith Randall authored
There wasn't one. I was mucking around with the Sendfile internals in CL 154663 so I need one to make sure I didn't break anything. Change-Id: I38b25de4995831680fdac440dfa7f26542d2624f Reviewed-on: https://go-review.googlesource.com/c/154664 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 20 Dec, 2018 9 commits
-
-
Alberto Donizetti authored
Change mode of mksysnum.go to 644. I also checked all the other files with 755 mode, to verify that no other Go file has this issue. After this change, only .sh and .pl files are executable: $ git ls-files -s * | grep 100755 100755 9f73c60660b8978be4cc7041362dc8c220c71bd7 0 plan9/mkall.sh 100755 85309c4a5ba73b0d05d53c6c262eeaf8d1038f5b 0 plan9/mkerrors.sh 100755 252e89e14d9cbd083ce61e52f8dd34a62e5fc828 0 plan9/mksyscall.pl 100755 3c3ab05810ee1203c0d578654dc3069587ba4e94 0 plan9/mksysnum_plan9.sh 100755 f8dab7511d90d51fbd1470a4b3e718cc559cf7f4 0 unix/mkall.sh 100755 955dd50f9af178321c881fe1fd5b5f95726dd28c 0 unix/mkerrors.sh 100755 c44de8d310ef46c084ed38cdaffe74dffbbcbbd5 0 unix/mksyscall_aix_ppc.pl 100755 53df26bb93acbd6b9841e36ac47ef73f4654b7ad 0 unix/mksyscall_aix_ppc64.pl 100755 a354df5a6bfd678cb722ccd7ed0795f7c94ac4c2 0 unix/mksyscall_solaris.pl 100755 20632e14608e37ba2ff7c5b3f467009cf315b51a 0 unix/mksysctl_openbsd.pl 100755 5453c53b192319c95d47c672a40d7a73f626105f 0 unix/mksysnum_darwin.pl 100755 6804f41216e732851470c89cb2ae1c552e5515cd 0 unix/mksysnum_dragonfly.pl 100755 198993d0954d65da7ed143d8edd9bd12117ac697 0 unix/mksysnum_freebsd.pl 100755 85988b140b9d843c104fe6a2a9f921eab6abcb03 0 unix/mksysnum_netbsd.pl 100755 84edf60ca12d90b0a6a080947b1a08fb7b6c3b20 0 unix/mksysnum_openbsd.pl Fixes golang/go#29369 Change-Id: I66eae4cec07806ea6289e229819aef8dbbad9335 Reviewed-on: https://go-review.googlesource.com/c/155417Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Keith Randall authored
Update golang/go#17490 Change-Id: Iaec54b8ffda1a24d4c8b5671185d570fb8683155 Reviewed-on: https://go-review.googlesource.com/c/154663Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Keith Randall authored
Update golang/go#17490 Change-Id: I55ea10ce2eb5fb1c0518a57900e78e5f0a29b893 Reviewed-on: https://go-review.googlesource.com/c/154662Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Keith Randall authored
Update golang/go#17490 Change-Id: I29feed5ddea976b39bd4c43bd1ff5942f47df083 Reviewed-on: https://go-review.googlesource.com/c/154661Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Keith Randall authored
Use libc version instead. Update golang/go#17490 Change-Id: Ibcedccb9715961904d12fc85f69a7139b6c26658 Reviewed-on: https://go-review.googlesource.com/c/154660Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Keith Randall authored
This system call doesn't exist on iOS. Update golang/go#28984 Change-Id: I92eb6fd3eb263863a31338bc18c9826a2242434b Reviewed-on: https://go-review.googlesource.com/c/154659Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Keith Randall authored
Parallel to CL 151938 for package x/sys/unix instead of syscall. iOS needs to use these functions without the "64" postfix. (The functions do exist, but the App Store bans their use.) Updates golang/go#28984 Change-Id: I6b82950700cc8a1afca612844b05fa007574e008 Reviewed-on: https://go-review.googlesource.com/c/154658Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Keith Randall authored
Call into libSystem (Darwin's libc equivalent) to do system calls. Raw syscalls are not a supported ABI on Darwin, they want us to use libSystem calls instead. The stdlib has already been converted to this new regime. This package is vendored into the stdlib, so we need to fix it also, then vendor it in again. Because this package isn't tied to a Go release, we need to keep the old code around and use the new code only for 1.12 and up. Update golang/go#17490 Change-Id: Idbcacff096b5bfeac871aa75dfd971570ac93322 Reviewed-on: https://go-review.googlesource.com/c/154179Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
The removed paddings are expected behavior resulting from CL 150602. Change-Id: I2c80405e20f92cca4890230c6f0644b724a8076e Reviewed-on: https://go-review.googlesource.com/c/155257 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 18 Dec, 2018 1 commit
-
-
Jordan Rhee authored
Use wevtutil.exe to query event log instead of powershell's Get-EventLog command, which is not available on Windows IoT Core. Updates golang/go#26148 Change-Id: Idc16d0b18d2826730d2b4062388b2a764c4886c6 Reviewed-on: https://go-review.googlesource.com/c/154817 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 17 Dec, 2018 1 commit
-
-
Jordan Rhee authored
pdh.dll is not available on Windows IoT core. Use netevent.dll instead. Update golang/go#26148 Change-Id: I80c299ad030944954d5d7d182d91dc15e71341f9 Reviewed-on: https://go-review.googlesource.com/c/154560Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 13 Dec, 2018 3 commits
-
-
Tobias Klauser authored
AIX doesn't provide a flock() syscall, it was previously emulated in package syscall by using fcntl. This emulation was removed in CL 152397. Since unix.Flock wraps syscall.Flock, the build currently fails on aix without this change. Change-Id: Ie887619cd64ae009ea43f00c74e450a5b8f998ac Reviewed-on: https://go-review.googlesource.com/c/153938 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Clément Chigot <clement.chigot@atos.net> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Use the arm_sync_file_range to implement SyncFileRange. This is an alias for sync_file_range2 syscall which is already used to implement SyncFileRange on ppc64x. These have the order of the flags and offset arguments reversed in order to fit the syscall arguments within 6 registers. For more information see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edd5cd4a9424f22b0fa08bef5e299d41befd5622 This makes TestSyncFileRange build and pass on linux/arm. Change-Id: I1316328ebcf550a3fb70f9ce5ebf54d8bcaa932c Reviewed-on: https://go-review.googlesource.com/c/153939 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
runtime.GOOS and runtime.GOARCH are constants, thus all comparisons are evaluated at compile time. Follow-up for CL 153619 to make the code consistent with the syscall package, cf. CL 153837 Change-Id: I0520d88c1636c6ed2acad69fce85a28042eafe56 Reviewed-on: https://go-review.googlesource.com/c/153937 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Joel Sing <joel@sing.id.au> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 12 Dec, 2018 1 commit
-
-
Joel Sing authored
The OpenBSD armv7 port requires 64-bit alignment for cmsgs. Rework the cmsg alignment code to facilitate this. Change-Id: Ie3eae1d367e2f3ac200fa8b78e97a2eb2eccae6a Reviewed-on: https://go-review.googlesource.com/c/153619 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 11 Dec, 2018 1 commit
-
-
Joel Sing authored
Regenerate ztypes for openbsd/arm - most of the changes relate to the OpenBSD armv7 port switching to EABI in September 2016. Change-Id: I6ae8fa81ea24a30fee9609f0dce1a3f43d5f4bae Reviewed-on: https://go-review.googlesource.com/c/153617Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com>
-
- 10 Dec, 2018 2 commits
-
-
Jason A. Donenfeld authored
ARM64 does this exact same thing, and in fact this is required on Android 9, where Bionic now only allows lstat on 32-bit platforms Folks are running into this when using Android on Chromebooks, which are keeping AMD64 Android alive. So, we change the AMD64 behavior to model that of ARM64. Change-Id: Id933cc22b42ab365c12980915557bdbf88661a4d Reviewed-on: https://go-review.googlesource.com/c/153319 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Jason A. Donenfeld authored
ARM64 does this exact same thing, and in fact this is required on Android 9, where Bionic now only allows inotify_init on 32-bit platforms. Folks are running into this when using Android on Chromebooks, which are keeping AMD64 Android alive. So, we change the AMD64 behavior to model that of ARM64. However, since Go must run on kernels between 2.6.27 and 2.6.23, we must still fall back to the original call. Fixes: https://lore.kernel.org/wireguard/CALv=V9Gv6apdWJ9P-80zf9bgByd=c3QqPhRHuw6o0_OaH0=W6g@mail.gmail.com Change-Id: I183e82679cb7d702d12a35457920ccd422176254 Reviewed-on: https://go-review.googlesource.com/c/153318 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 08 Dec, 2018 1 commit
-
-
Tobias Klauser authored
Passing an empty iovs []Iovec slice to Vmsplice leads to an index out of range panic. Fix this by passing an nil unsafe.Pointer to the underlying syscall in case of an empty slice. Change-Id: If1844c1b2eb0833de598aed7e79b9fcf061f7975 Reviewed-on: https://go-review.googlesource.com/c/153317 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 06 Dec, 2018 1 commit
-
-
Meng Zhuo authored
Port from Go internal/cpu Updates golang/go#25185 Change-Id: I8390980e38b61f6c428fafa0665a03952e7b00bb Reviewed-on: https://go-review.googlesource.com/c/150718 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 05 Dec, 2018 1 commit
-
-
Visweswara R authored
Port mksysnum.pl Perl script to mksysnum.go. mkall scripts are modified to run mksysnum.go. Running ./mkall.sh does not generate any git diff besides the command name in comments of generated files. Updates golang/go#27779 Change-Id: Id62df9d819f00729ab19b6bc4d32dddcf8d9832b Reviewed-on: https://go-review.googlesource.com/c/151377 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 28 Nov, 2018 1 commit
-
-
Visweswara R authored
Port mksyscall.pl Perl script to mksyscall.go. mkall scripts are modified to run mksyscall.go. Running ./mkall.sh does not generate any git diff besides the command name in comments of generated files. Updates golang/go#27779 Change-Id: I8c6eb852e6821f4a91dc03cc042d8d343f1bcf66 Reviewed-on: https://go-review.googlesource.com/c/150217Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 22 Nov, 2018 1 commit
-
-
virtualsue authored
TestGetwd can fail on systems that have unexpected directory/partition configurations using symlinks. Fixes golang/go#26678 Change-Id: I44dba94c5e8b6a8e1e7e112cd7d0541d22b65d84 GitHub-Last-Rev: 727a6cc6a718969828a15d1016c89ea9be8a12e0 GitHub-Pull-Request: golang/sys#22 Reviewed-on: https://go-review.googlesource.com/c/148537Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 21 Nov, 2018 1 commit
-
-
David Anderson authored
IoctlSetPointerInt is necessary for interacting with the PPP kernel driver, which wants it passed as a pointer to int, rather than the more conventional int cast as a pointer. We can technically do this already with IoctlSetInt(int(uintptr(unsafe.Pointer(&foo)))), but that's just masking the operation we're trying to execute in the first place, and relying on the internals of IoctlSetInt to do the right inverse transformation. Change-Id: I1e6a1dd6190c11f06c6f5393cd2cae453939878a GitHub-Last-Rev: a88f56073d04b02d9c076b112adaf99169a49513 GitHub-Pull-Request: golang/sys#25 Reviewed-on: https://go-review.googlesource.com/c/150321 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 19 Nov, 2018 1 commit
-
-
David Anderson authored
Change-Id: I76b53563e3f029d1fbaad39acd5af73df278343e GitHub-Last-Rev: b0aff54248e67269e5934534c96340f5d2c39b6f GitHub-Pull-Request: golang/sys#24 Reviewed-on: https://go-review.googlesource.com/c/150317Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 16 Nov, 2018 2 commits
-
-
David Anderson authored
`sockaddr_pppox` is a packed struct, which godefs doesn't understand. So, I had to do the byte packing by hand instead. Change-Id: Ib92cf43f8ae0729a0af043c4241063911c95e6bf GitHub-Last-Rev: 8982dec099594064d3892f3fa05bb7b5989cec6d GitHub-Pull-Request: golang/sys#23 Reviewed-on: https://go-review.googlesource.com/c/149757 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Tobias Klauser authored
After CL 136816 the bits member of the FdSet struct is no longer exported. Make sure to retain it in mkpost.go and rename it to Bits as on all other systems. Change-Id: I860b307a80c7e29b4a75d9d916d879ee0a31c014 Reviewed-on: https://go-review.googlesource.com/c/149897 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Yuval Pavel Zholkover <paulzhol@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Nov, 2018 1 commit
-
-
Tobias Klauser authored
This ioctl is used to implement ptsname on netbsd. Change-Id: Ic87f1bf7d15c6fbef0c2226a06a4983a504c3f30 Reviewed-on: https://go-review.googlesource.com/c/148097 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 06 Nov, 2018 3 commits
-
-
Tobias Klauser authored
Change-Id: I18354d29db909227ae75df1c8b1ab7888375f8db Reviewed-on: https://go-review.googlesource.com/c/147740 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
sys/capability.h is deprecated, use sys/capsicum.h instead. Change-Id: I05a3b8ff28d4df6536a3f10e0da7381b48329738 Reviewed-on: https://go-review.googlesource.com/c/147737 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Lynn Boger authored
When using -linkshared, the external linker on ppc64x cannot always handle the direct branch to syscall.Syscall and similar similar functions when the offset is too far. Instead it should be done as a BL which can then be called through a procedure linkage table entry. This change removes functions Syscall, Syscall6, RawSyscall, RawSyscall6 from asm_linux_ppc64x.s and instead creates Go functions which call their corresponding functions in the syscall package. As Go functions, they can be inlined with the help of CL 147361. Fixes golang/go#16662 Change-Id: Ibd2b6ec15b0781c3d7db25e249a3ffc9e1c2884b Reviewed-on: https://go-review.googlesource.com/c/146518 Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 31 Oct, 2018 1 commit
-
-
Tobias Klauser authored
Passing an empty data []byte to Fsetxattr/Setxattr/Lsetxattr leads to an index out of range panic. Fix this by passing an nil unsafe.Pointer to the underlying syscall in this case. Change-Id: I5ef3983c6304c5317ed5b49afc4ed19791864dbb Reviewed-on: https://go-review.googlesource.com/c/146198 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 30 Oct, 2018 3 commits
-
-
Tobias Klauser authored
Add Faccessat, Fchownat, Linkat, Mkdirat, Mknodat, Symlinkat and Unlinkat. Change-Id: I9a2758ea2ca31aa59c57ead01838c08cbab2bbe1 Reviewed-on: https://go-review.googlesource.com/c/145819 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
Add Fchownat, Linkat, Mkdirat, Mkfifoat, Mknodat, Openat, Readlinkat, Renameat, Symlinkat and Unlinkat. Change-Id: Id498b2f1a99f281599bc226a0c50a13172e36e4f Reviewed-on: https://go-review.googlesource.com/c/145818 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 Fchownat, Linkat, Mkdirat, Mkfifoat, Mknodat, Renameat, Symlinkat and Unlinkat. Change-Id: I023214f3b65e3b7d620fa7e1ce12f1c35a765cd9 Reviewed-on: https://go-review.googlesource.com/c/145817 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 29 Oct, 2018 1 commit
-
-
Tobias Klauser authored
Change-Id: I1069c327a5ce01ca2bfa37a889d3c6fd72b7859d Reviewed-on: https://go-review.googlesource.com/c/145517 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 26 Oct, 2018 3 commits
-
-
Tobias Klauser authored
Change-Id: I1bf134301e5e81e6d6524bf63532975166694db6 Reviewed-on: https://go-review.googlesource.com/c/144978 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: Ie37958307e8bf6d5fd47caa7ab5b1c209d0cca00 Reviewed-on: https://go-review.googlesource.com/c/144977 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
s7onith authored
Added PledgePromises and PledgeExecpromises functions Added the pledgeAvailable helper function to check for pledge(2) availability Change-Id: Ib40e7eb481f70e4c02219db0ad445dfaa92aba2b Reviewed-on: https://go-review.googlesource.com/c/142898Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-