- 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 4 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>
-
Tobias Klauser authored
InitModule loads a kernel module from an ELF image. FinitModule loads a kernel module from a file descriptor. DeleteModule unloads a kernel module. These syscalls require the CAP_SYS_MODULE capability. See http://man7.org/linux/man-pages/man2/init_module.2.html and http://man7.org/linux/man-pages/man2/delete_module.2.html for details. Also drop deprecated syscalls related to kernel modules from the list of unimplemented syscalls. Change-Id: I131e17f02c5617640f5f4073982d2b27a6d78bbf Reviewed-on: https://go-review.googlesource.com/c/144173 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 25 Oct, 2018 1 commit
-
-
Ivan Markin authored
Now as `SYS_UNVEIL` has landed in `x/sys`, it's time to have a convenient handle for it too. Change-Id: I61db9cc23fa9f2e10bac601959002319ea9c854b GitHub-Last-Rev: eb9487242e1fafa06c057ef49444ea5a711382df GitHub-Pull-Request: golang/sys#19 Reviewed-on: https://go-review.googlesource.com/c/142317Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 24 Oct, 2018 2 commits
-
-
Tobias Klauser authored
Use ppoll instead of re-implementing it using Syscall6(SYS_PPOLL, ...) Change-Id: I7b3baa00df32dc1fe7ee80755843a492a884938c Reviewed-on: https://go-review.googlesource.com/c/144171 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: I0c9d97d7db72e74cfd5d7ba77c46726ec38b821b Reviewed-on: https://go-review.googlesource.com/c/144172 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 23 Oct, 2018 1 commit
-
-
Tobias Klauser authored
Change-Id: I3a13730e219e6f6df28829cf0d1e193c62073ac8 Reviewed-on: https://go-review.googlesource.com/c/144057 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 22 Oct, 2018 3 commits
-
-
Tobias Klauser authored
Change-Id: I58c2cfb11ddd5ce731a880c0c63790092052f130 Reviewed-on: https://go-review.googlesource.com/c/143697 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Ivan Markin authored
Change-Id: Ifecafeedd733d4b33ef082a8f505165de9bac20a GitHub-Last-Rev: 44c40b042479bb3a4a73838b2536adbb715cde11 GitHub-Pull-Request: golang/sys#20 Reviewed-on: https://go-review.googlesource.com/c/142318Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Yuval Pavel Zholkover authored
Background: The 64-bit inode project was merged into the upcoming FreeBSD 12 release. It changes the ABI for structs holding inodes: stat, statfs, dirent. New system call numbers were introduced which accept the new struct layouts, the old ones were marked as COMPAT11. Their equivalent libc wrappers are using ELF symbol versioning. The new wrappers have moved from @FBSD_1.0 to @FBSD_1.5. Backward and forward compatability is achieved by always using the new struct layouts while converting the old struct instance to the new layout on old kernels. https://svnweb.freebsd.org/base?view=revision&revision=318736 https://svnweb.freebsd.org/base?view=revision&revision=320278 The same approach is used for Go: The new Stat_t, Statfs_t and Dirent types hold 64-bit inodes and additional ABI changes, they are generated from their C definitions in FreeBSD-12 using cgo -godefs. Each type has an unexported *_freebsd11 counterpart generated the same way. Previous directly exposed syscalls like Fstat have now a wrapper in place calling either fstat or fstat_freebsd12 zsyscall wrapper based on the kern.osreldate. If an old syscall needs to be used, then the returned *_freebsd11 result is converted to the new layout before returning from the wrapper. Introduce supportsABI() call to check the kern.osreldate sysctl for the ABI version. Drop the old struct stat8 definition in favour of the <sys/stat.h> version. Run the mktypes part of GOOS=freebsd GOARCH={386,amd64,arm} ./mkall.sh on FreeBSD-12.0-ALPHA6 (r338675), updating all types except Kevent. Expose Mknodat, both COMPAT11 version (currently missing) and the FreeBSD 12 one. Some COMPAT11 syscalls have no direct FreeBSD 12 counterpart, in those cases an *at(AT_FDCWD, ...) is used instead. Updates golang/go#22448 Change-Id: I87940b88ae358db88103cdcd06f9cafbf4694cfc Reviewed-on: https://go-review.googlesource.com/c/136816 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Giovanni Bajo <rasky@develer.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 21 Oct, 2018 1 commit
-
-
Ivan Markin authored
For all supported platforms (386, amd64, arm). Note that this doesn't update whole `unix` package for these platforms. Change-Id: I0a66f8403f704c6328000ffc9f238989c22936d2 GitHub-Last-Rev: 14fd451964abcfacdb94dca3dc41742bacd0f732 GitHub-Pull-Request: golang/sys#21 Reviewed-on: https://go-review.googlesource.com/c/143542Reviewed-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>
-
- 19 Oct, 2018 2 commits
-
-
Tobias Klauser authored
Add the SOF_TIMESTAMPING_* flags used to request different types of timestamping operations. In err := unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_TIMESTAMPING, val) val is a mask of SOF_TIMESTAMPING_* values. See https://www.kernel.org/doc/Documentation/networking/timestamping.txt for more information. Fixes golang/go#28173 Change-Id: I26e964d607606f2b3cb24f66f071d11765b9696e Reviewed-on: https://go-review.googlesource.com/c/143337 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
chigotc authored
This commit ports unix package for aix/ppc64 with gc implementation. In order to merge as much as possible gc and gccgo implementation, the mksyscall_aix_ppc64.pl creates three files. zsyscall_aix_ppc64.go is common for both implementation. It has the main syscall function and handles the pointer creations, type conversions and the error if needed. It calls a function "call..." which is available for each implementation. zsyscall_aix_ppc64_gc.go is the gc part. It implements "call..." functions using //go:cgo_import_dynamic and //go:linkname. It is based on syscall.syscall6 function. zsyscall_aix_ppc64_gccgo.go is the gccgo part. It implements "call..." functions using cgo and C functions. Some unavailable syscalls were also removed from the previous implementation. For aix/ppc, the script is left unchanged as aix/ppc won't be implemented inside gc. Change-Id: I3701095df31517c66f95874ba8e682967993090b Reviewed-on: https://go-review.googlesource.com/c/143117 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
-
- 11 Oct, 2018 1 commit
-
-
Tobias Klauser authored
These marker comments are in every other zsyscall_*.go file generated by mksyscall.pl and mksyscall_aix.pl. Also add them to the file generated by mksyscall_solaris.pl. Change-Id: Ic0ad5f28dd0a0934aa768f58ccc390b613a36abb Reviewed-on: https://go-review.googlesource.com/c/141557 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 05 Oct, 2018 2 commits
-
-
Tobias Klauser authored
This wasn't converted during CL 110875 Updates golang/go#25134 Change-Id: Iaa579e0c173d3e27cf9f7e20072752277089beb1 Reviewed-on: https://go-review.googlesource.com/c/139977 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 a wrapper for the kexec_file_load syscall on the architectures that implement it (amd64, ppc64x, s390x). See http://man7.org/linux/man-pages/man2/kexec_file_load.2.html Change-Id: Ie29f871902176610a6ba7ed0a7bcc95c10eb172b Reviewed-on: https://go-review.googlesource.com/c/140037 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 04 Oct, 2018 1 commit
-
-
Tobias Klauser authored
Export the sizeof(Ptr|Short|Int|Long|LongLong) consts. This allows users to get this information (e.g. for alignment purposes) without using cgo or generating these constants themselves. Change-Id: I8640482bf67b89c2f2b6e9a116ba7bc268f8135a Reviewed-on: https://go-review.googlesource.com/c/139617 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-