Tobias Klauser
4497e2df6f
unix: convert errorList and signalList to new format for linux/sparc64
...
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 >
2018-10-05 13:31:03 +00:00
Tobias Klauser
9e6071e1da
unix: follow convention for generated code comment
...
Follow the convertion (https://golang.org/s/generatedcode ) for generated
code.
Change-Id: I27899b24366d5c0d2c5574b5eaf3d7e0babc8909
Reviewed-on: https://go-review.googlesource.com/118820
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2018-06-14 13:37:17 +00:00
Matt Layher
d67a3279ae
unix: implement Linux AF_VSOCK sockets
...
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 >
2017-03-08 01:50:38 +00:00
Michael Stapelberg
e48874b424
unix: add BLK* Linux ioctls
...
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/37640
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2017-03-03 13:59:30 +00:00
Joe Richey
76cc09b634
unix: add Getrandom syscall bindings and flags
...
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/37589
Reviewed-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 >
2017-03-01 01:59:58 +00:00
Matt Layher
075e574b89
unix: implement Vmsplice, add SPLICE_F_* constants
...
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 >
2017-02-17 00:34:42 +00:00
Matt Layher
e24f485414
unix: add support for AF_ALG sockets on Linux
...
Fixes golang/go#19033 .
Change-Id: Icbd249f63cd4a9035a1decaa8bf4c521303b4494
Reviewed-on: https://go-review.googlesource.com/36805
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-02-13 22:57:39 +00:00
Maxime de Roucy
ce7380f5b0
x/sys/unix: add fallocate constants
...
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 >
2017-02-13 20:02:47 +00:00
Elliot Morrison-Reed
30237cf4ee
x/sys/unix: added SockaddrCAN struct to allow creation of AF_CAN sockets
...
Fixes golang/go#16188
Change-Id: I396ccbf6ce14147bc03ecdf180c2657c22b477b4
Reviewed-on: https://go-review.googlesource.com/33392
Reviewed-by: Ian Lance Taylor <iant@golang.org >
Run-TryBot: Ian Lance Taylor <iant@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2016-11-22 21:48:34 +00:00
James Clarke
67f277b6fe
unix: Added linux/sparc64 gccgo support
...
Change-Id: Iff763334a2efbd44af68048d1de700af7d271647
Reviewed-on: https://go-review.googlesource.com/30755
Run-TryBot: Ian Lance Taylor <iant@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2016-10-11 00:35:16 +00:00