- 24 May, 2017 1 commit
-
-
Matt Layher authored
This CL adds basic integer get/set functions which wrap a generic ioctl call. The API is similar the one introduced for solaris/amd64 in CL 14587, but the request parameter has been changed to a uint instead of an int. This makes requests with a number larger than the maximum signed 32-bit integer work on linux/386. For consistency, the solaris/amd64 API has also been updated to make use of a uint instead of an int for the request number. Fixes golang/go#20474 Change-Id: Iaae1ee2e4bb4bfcc420dcec252fe53c8d90ce81d Reviewed-on: https://go-review.googlesource.com/44009 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 21 May, 2017 1 commit
-
-
helloPiers authored
The args passed to Mgr.CreateService end up as the command-line arguments (available via os.Args), not as the args passed to Svc.Handler.Execute. Fixes golang/go#20440 Change-Id: I55a1ec3432b377082c018fe960114c96350e8978 Reviewed-on: https://go-review.googlesource.com/43714Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 18 May, 2017 2 commits
-
-
Joe Richey joerichey@google.com authored
This CL adds support for the ADD_KEY, REQUESET_KEY, and KEYCTL syscalls. These syscalls allow access to the kernel keyring facilities. In C code, these syscalls are wrapped by the libkeyutils package. See: http://man7.org/linux/man-pages/man7/keyutils.7.html The ADD_KEY and REQUEST_KEY calls are fairly straightforward, but the KEYCTL syscall is a multiplexor for a number of key management functions. See: http://man7.org/linux/man-pages/man3/keyctl.3.html The Go bindings for the KEYCTL functions attempt to replicate what libkeyutils does. This is done via generated helper functions. Change-Id: If8c97d4ef5bce14c43dee3e6772ded42dc3c595a Reviewed-on: https://go-review.googlesource.com/41415Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Julian Pastarmov authored
This allows services written with this library to register for more advanced notifications like SERVICE_CONTROL_DEVICEEVENT for example. Also the code now exposes the service status handle through a new api call, because the handle is needed to register for such notifications and can not be obtained by any other means. Change-Id: I80796e1dd9d94ec9d6c236d0413b17288c67fe1f Reviewed-on: https://go-review.googlesource.com/42812Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 17 May, 2017 1 commit
-
-
Mikio Hara authored
Change-Id: I4ef179aacaf0694cd7661b4d9972ce85abeee8df Reviewed-on: https://go-review.googlesource.com/43470Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 14 May, 2017 1 commit
-
-
Sean Chittenden authored
Reference: https://www.illumos.org/man/2/statvfs Change-Id: If7af43da35b3204f5069a48eb08426a145544008 Reviewed-on: https://go-review.googlesource.com/43490Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 12 May, 2017 4 commits
-
-
Derek McGowan authored
Introduces the CopyFileRange syscall which first appears in Linux 4.5. Allows copying file content between file descriptors within the kernel without transferring data to user space. This syscall also allows the kernel to take advantage of reflinking or other fast copy methods on supported file systems. http://man7.org/linux/man-pages/man2/copy_file_range.2.html Change-Id: Id365f1e5d4d5ddf7159478e3a13084c9576ebd5c Reviewed-on: https://go-review.googlesource.com/39992Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
James Cowgill authored
On mips, "struct user" bears no relation to the actual structure used by PTRACE_GETREGS. The real structure is "struct pt_regs" which is declared in asm/ptrace.h Fixes golang/go#20338. Change-Id: I604d27bd2b0a0903784380cbd3fa2fd9b9811fa5 Reviewed-on: https://go-review.googlesource.com/43431Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
James Cowgill authored
After this commit the testsuite passes on mips64le. Fixes golang/go#20340. Change-Id: I6b3f673674af107fd6d249ccf5e695e0e50a41bb Reviewed-on: https://go-review.googlesource.com/43430Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Tamir Duberstein authored
Useful since GetSystemTimePreciseAsFileTime is Windows 8+. Change-Id: I736bd0668aaf6ad086f6465b8b9a17f1943f0570 Reviewed-on: https://go-review.googlesource.com/43312Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 11 May, 2017 3 commits
-
-
Mikio Hara authored
This is a backport of https://go-review.googlesource.com/30171. Updates golang/go#7402. Change-Id: I4e79570964c248ec52acf14d0ed8306e52073a51 Reviewed-on: https://go-review.googlesource.com/43212 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Fixes golang/go#17252. Change-Id: I244c14d531542ea154f82e402059f4bc999241e2 Reviewed-on: https://go-review.googlesource.com/43211 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Change-Id: If732030e7ed8f1ba4ce09d4efc5b132d5f48fd8a Reviewed-on: https://go-review.googlesource.com/43210 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 27 Apr, 2017 2 commits
-
-
Mikio Hara authored
Also adds support for accept4 system call. Change-Id: Ib4f15a3ac47ad2fa86ac2f22331a061ddda12d82 Reviewed-on: https://go-review.googlesource.com/41833Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Each language has its own operators. Change-Id: I765d4d56aeafe693d22914de7ee970d7b1928a25 Reviewed-on: https://go-review.googlesource.com/41832Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 25 Apr, 2017 1 commit
-
-
Ian Lance Taylor authored
The code was broken such that it didn't compile. With this fix, it compiles. Fixes golang/go#20055. Change-Id: I9aeb4900f2c99b2ad254be75b4987913cae71e14 Reviewed-on: https://go-review.googlesource.com/41672Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 24 Apr, 2017 1 commit
-
-
joerichey@google.com authored
This CL adds in the necessary types and constants to support Linux filesystem encryption. This includes the structs for the keys and polices as well as the constants for key size and encryption algorithms. This code also reduces the scope of some of the regexes in mkerrors.sh. This is to reduce the number of unrelated constants added in with this change. Note that due to a bug in the Linux uapi headers, not all of the necessary constants and structures are declared in linux/fs.h despite being part of the kernel ABI. This means that some constants and types had to be manually added in. The bug has been patched (https://patchwork.kernel.org/patch/9662723), and the manual additions can be removed when the patch is merged into the mainline kernel. Change-Id: Ib508ad99bdf4c0068933ffcf351c52bb359cfcf4 Reviewed-on: https://go-review.googlesource.com/41417Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 21 Apr, 2017 1 commit
-
-
Joe Richey authored
Right now the process for adding in new constants, errors, or syscalls for Linux is a pain and unreliable. The scripts are designed to be run on the target architecture and use the header files installed on the user's system. This makes it hard to generate files for all the architectures or to have consistency between users. See golang/go#15282. This CL fixes this issue by making all of the files for the 11 supported architectures directly from source checkouts of Linux, glibc, and bluez. This is done using Docker, the gcc cross-compilers, and qemu emulation. Previously discussed here: https://go-review.googlesource.com/c/37589/ A README.md file is also added to explain how all the parts of the build system work. In order to get the build working for all the architectures, I made some changes to the other scripts called from mkall_linux.go: - Files only used for generating linux code, moved to linux/ - linux/mksysnum.pl supports a specified CC compiler. - The generated C code in mkerrors.sh changed to avoid a warning - mkerrors.sh headers changed to fix powerpc64 bug in sys/ioctl.h - linux/types.go no longer needs to export Ptrace structs in lowercase Build instructions: - Host system needs to be x86-64 Linux - Install Docker (https://docs.docker.com/engine/installation/) - ./mkall.sh (That's it!!!) Change-Id: I87067c14442ba12f8d51991349a43a9d73f38ae0 Reviewed-on: https://go-review.googlesource.com/37943Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Apr, 2017 2 commits
-
-
Tamir Duberstein authored
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686244(v=vs.85).aspx Change-Id: If7d460a9fb43767c0a3ee55e86faf3356162c81d Reviewed-on: https://go-review.googlesource.com/39609Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Tamir Duberstein authored
GetStdHandle: https://msdn.microsoft.com/en-us/library/windows/desktop/ms683231(v=vs.85).aspx DWORD: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx Change-Id: I2fb794f85418e7846687911c4513886eb1803770 Reviewed-on: https://go-review.googlesource.com/39608Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 06 Apr, 2017 1 commit
-
-
Jason Chu authored
golang.org/x/sys/unix currently does not compile on mips nor mipsle as it fails to set the `isBigEndian` variable. This is due to mips and mipsle being missing in the build tag of their respective endian files. This change adds mips to the build tag of `endian_big.go` and mipsle to the build tag of `endian_little.go` to fix this issue. Change-Id: I79947cedb2645e80143e65bde00f2c95261125fb Reviewed-on: https://go-review.googlesource.com/39730Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 05 Apr, 2017 1 commit
-
-
Tamir Duberstein authored
https://msdn.microsoft.com/en-us/library/windows/desktop/hh706895(v=vs.85).aspx Change-Id: I6e6a6642c041fad046ae7db725a27e7e94bfbfba Reviewed-on: https://go-review.googlesource.com/39610Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 03 Apr, 2017 1 commit
-
-
Chris Manghane authored
Change-Id: I190098a4a969a706c555e48d2ad938d41017601e Reviewed-on: https://go-review.googlesource.com/39195Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 29 Mar, 2017 1 commit
-
-
Koki Ide authored
This is a copy of https://golang.org/cl/23780 for the x/sys repo. Don't panic, crash, or return references to uninitialized memory when ParseDirent is passed invalid input. Updates golang/go#15653 Fixes golang/go#19754 Change-Id: Idb7cffe14d48ed662e5a55ecb5249c1907cf4003 Reviewed-on: https://go-review.googlesource.com/38758Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 25 Mar, 2017 1 commit
-
-
Agis Anastasopoulos authored
Fixes golang/go#14459 Change-Id: I9809340141dd5704d5a32a079486a1f889725541 Reviewed-on: https://go-review.googlesource.com/38638Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 22 Mar, 2017 1 commit
-
-
Yestin authored
Pledge, the privilege-restricting syscall and mitigation mechanism, was missing from syscall_openbsd.go. As of the latest release, it is officially supported in "stable". More information about the call itself, and hence its importance, can be found at: http://www.openbsd.org/papers/hackfest2015-pledge/mgp00001.html Change-Id: I2fdac1968664668e7bea1175677efe6433e0125e Reviewed-on: https://go-review.googlesource.com/21815 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 08 Mar, 2017 2 commits
-
-
Matt Layher authored
"When the client creates a connection, instead of providing an IP address to choose its server, the client must provide the context ID (CID) of a virtual machine or host." Reference: https://pubs.vmware.com/vsphere-60/topic/com.vmware.ICbase/PDF/ws9_esx60_vmci_sockets.pdf Change-Id: Ia2dfe015594e0ca43a3c8acec1f43d418f5781af Reviewed-on: https://go-review.googlesource.com/37864Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matt Layher authored
Adds the required constants and new SockaddrVM type for working with Linux VM sockets. For more information, see: https://vmsplice.net/~stefan/stefanha-kvm-forum-2015.pdf. Fixes golang/go#19434 Change-Id: I9aefb35441b2c7dc412bdfb806ebe08d5c20f6b1 Reviewed-on: https://go-review.googlesource.com/37937 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 03 Mar, 2017 1 commit
-
-
Michael Stapelberg authored
These are useful for re-reading partition tables and getting device sizes. Fixes golang/go#19370 Change-Id: Ia8dbe3416a48dbdbceafa0fff0131d71057d97ca Reviewed-on: https://go-review.googlesource.com/37640Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 Mar, 2017 1 commit
-
-
Joe Richey authored
This CL introduces the Getrandom syscall. Allowing users of sufficiently new kernels (3.17) to detect when the operating system lacks enough entropy to generate cryptographic random data. See: http://man7.org/linux/man-pages/man2/getrandom.2.html As we have updated the syscall numbers, the Getrandom function can just be generated normally. The only other change is to mkerrors.sh to include the GRND_* flags for getrandom from <linux/random.h>. It is important to note that currently the mkerrors.sh script cannot actually be run as it has fallen behind the 4.10 kernel. The GRND_* flags were added manually. This was originally part of a larger commit that was split up. See CL: https://go-review.googlesource.com/37570 Change-Id: I464088a9c9f7224abdcdae476b30a4f2f412d9f5 Reviewed-on: https://go-review.googlesource.com/37589Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 28 Feb, 2017 1 commit
-
-
Joe Richey authored
The syscall numbers for Linux were out of date, so with the release of the 4.10 kernel, now seemed like a reasonable time to update them. Note that this change is mostly additive except that it removes some invalid syscalls for arm, and it removes all constants that refer to either the syscall base or total number of syscalls. Previous versions had only removed some of them. The updated syscall numbers were pulled directly from a header build of the 4.10 kernel. This required some minor adjustements to the sysnum generating perl script and is why the comments at the tops of the generated files look slightly different. I could include the script I used to do this, but right now it cannot generate the zerrors and ztypes files. Change-Id: Id94b967eb917f8f87500f818f2e494df9bccf2e0 Reviewed-on: https://go-review.googlesource.com/37570Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 23 Feb, 2017 1 commit
-
-
Matt Layher authored
Fixes golang/go#19262 Change-Id: I67ceb187cd68e90a9387a706a89aafded0befe53 Reviewed-on: https://go-review.googlesource.com/37344Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 17 Feb, 2017 1 commit
-
-
Matt Layher authored
Fixes golang/go#19125 Change-Id: I822b6f260f980178da29a552c6170cb261c8e254 Reviewed-on: https://go-review.googlesource.com/37152 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 13 Feb, 2017 3 commits
-
-
Matt Layher authored
Fixes golang/go#19033. Change-Id: Icbd249f63cd4a9035a1decaa8bf4c521303b4494 Reviewed-on: https://go-review.googlesource.com/36805Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Sameer Ajmani authored
This contains a stub for func "use", which was deleted. See issue https://golang.org/issue/16607 Change-Id: I7165ca55ad956ac449e950f2be6f53cfeb8e6ffa Reviewed-on: https://go-review.googlesource.com/36720Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Maxime de Roucy authored
Add FALLOC_* constants from /usr/include/linux/falloc.h to use with Fallocate (golang.org/x/sys/unix package). Fix golang/go#10599 Change-Id: Ie001e554250bb12472c612adcb4b79c6f72cac34 Reviewed-on: https://go-review.googlesource.com/36336 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 10 Feb, 2017 1 commit
-
-
Sameer Ajmani authored
Update mksyscall*.pl to skip generating calls to "use". Make build tag handling match what's used in the syscall package. See issue https://golang.org/issue/16607 and CL https://golang.org/cl/36616 Change-Id: I2d2e823fe1846d2110c07eb1bf976852706ecf60 Reviewed-on: https://go-review.googlesource.com/36715 Run-TryBot: Sameer Ajmani <sameer@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 01 Feb, 2017 1 commit
-
-
Steven Hartland authored
TestSysctlUint64 was using vm.max_kernel_address which is only 64bit on 64bit machines or 32bit machines with PAE. Switch to using security.mac.labeled which is a SYSCTL_UQUAD so 64bit on all platforms. Also: * Correct typo in test name. Fixes golang/go#15186 Change-Id: I88b5b6ee6a04dec0730bca1e1f0e282f3c18d20d Reviewed-on: https://go-review.googlesource.com/36058Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 14 Dec, 2016 1 commit
-
-
Samuel Tan authored
These functions are redeclared in gccgo builds, so move them to separate files with the "!gccgo" build constraint. Fixes golang/go#18312 Change-Id: I868cfb77fc394e5e96cee78af0f3abf43db6082a Reviewed-on: https://go-review.googlesource.com/34379Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 05 Dec, 2016 1 commit
-
-
Vladimir Stefanovic authored
Change-Id: Ibf7a9e16ba0e1dde922748a34d61e197a985ed40 Reviewed-on: https://go-review.googlesource.com/33952 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-