- 05 Jan, 2019 1 commit
-
-
Visweswara R authored
Update mksyscall.pl to skip generating calls to "use". See issue https://golang.org/issue/16607 and CL https://golang.org/cl/36616 Change-Id: Id36614fce5d98a8538edf4f4a7276e650b99b839 Reviewed-on: https://go-review.googlesource.com/c/156437Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 02 Jan, 2019 2 commits
-
-
Tobias Klauser authored
Change-Id: Iadc92b5afd18a5c1df0bc42b0d6f52f0b768b47a Reviewed-on: https://go-review.googlesource.com/c/155979 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
This wasn't actually generated on freebsd/arm64 yet. It's mostly a copy of the amd64 files for now. Updates golang/go#24715 Change-Id: If24c3c5803a4708f0b26d738f690cbea1694ca88 Reviewed-on: https://go-review.googlesource.com/c/155978 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 28 Dec, 2018 3 commits
-
-
Anthony Fok authored
The stat structure on linux/mips64x differ between C library and the kernel, as described in the stat(2) man page. Fstat, Lstat and Stat on linux/mips64x already converts the stat structure using a fillStat_t function, very similar to __xstat_conv in GLIBC. Doing the same for Fstatat before calling SYS_NEWFSTATAT fixes the "Fstatat: returned stat does not match Stat/Lstat" error in TestFstatat. Fixes golang/go#29401 Change-Id: I0b2a7b274acc3c7c9fc7ae2afe722dd6225da383 Reviewed-on: https://go-review.googlesource.com/c/155747Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Aleksa Sarai authored
Previously the +build line was taken as a package comment, due to how Go handles cases like the following: // +build <foo> package foo And thus caused build failures because of package name conflict issues. Fixes: https://golang.org/cl/152677 Change-Id: I7360ee100a739b00beaa1337b0408bb06fa240a6 GitHub-Last-Rev: b67a58691f3a5be12f2c5c510fbb4bd95fdd6e05 GitHub-Pull-Request: golang/sys#28 Reviewed-on: https://go-review.googlesource.com/c/155748Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
Visweswara R authored
Port mksysnum_{(open|net|free)bsd,dragonfly,darwin}.pl Perl scripts to mksysnum.go. mkall.sh script is modified to run mksysnum.go. Running ./mkall.sh generates no git diff besides command name and function prototype in comments of generated files. Updates golang/go#27779 Change-Id: I534734a9c7fda186ca133ba19e14481e55832be1 Reviewed-on: https://go-review.googlesource.com/c/152677Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 21 Dec, 2018 5 commits
-
-
Tobias Klauser authored
With cgo supporting sparc64 as of CL 102555 and CL 132155, the Docker based build system can be used to generate file for linux/sparc64 as well. Updates golang/go#15282 Change-Id: I109e55f39d3229b24b0029c42074e439c6c54dc8 Reviewed-on: https://go-review.googlesource.com/c/102655 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
itchyny authored
Fix a compile error due to unused import introduced by CL 154663. Change-Id: I2a732380c35cd98dfff36289f5d72fd7d7222205 GitHub-Last-Rev: 5c7065d26c8bf85d5dd7dc74f1631ab3532f69a9 GitHub-Pull-Request: golang/sys#26 Reviewed-on: https://go-review.googlesource.com/c/155460Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Keith Randall authored
Change-Id: Iab98581ade90ffb6c9faa29d4a45558498fff82a Reviewed-on: https://go-review.googlesource.com/c/155398Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Keith Randall authored
Make 1.11 the explicitly named case, and 1.12 the default. Change-Id: Ic3674860eb9e8a5bb1cf1da12c5ac583cc0b0633 Reviewed-on: https://go-review.googlesource.com/c/155397Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
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 1 commit
-
-
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>
-