Mark Ryan
104d4017fa
unix: add riscv_hwprobe for riscv64
...
The riscv_hwprobe system call was introduced in Linux 6.4 and allows
the caller to determine a number of interesting pieces of information
about the underlying RISC-V CPUs, e.g., which extensions they support
and whether they allow fast unaligned memory accesses. For more information
please see:
https://docs.kernel.org/riscv/hwprobe.html
We also update linux/mksysnum.go to ensure that the generated syscall constants
written to the zsysnum_linux_*.go files are always sorted by their syscall numbers
in ascending order.
Updates golang/go#61416
Change-Id: Iedb0a86adb65faac9061b9a5969ffa09eb5b303a
Reviewed-on: https://go-review.googlesource.com/c/sys/+/510795
TryBot-Result: Gopher Robot <gobot@golang.org >
Reviewed-by: Matthew Dempsky <mdempsky@google.com >
Auto-Submit: Ian Lance Taylor <iant@google.com >
Reviewed-by: Ian Lance Taylor <iant@google.com >
Run-TryBot: Ian Lance Taylor <iant@google.com >
2023-07-26 11:14:25 +00:00
Matt Layher
22a9840ba4
unix: add nl80211 generic netlink constants for Linux
...
Change-Id: Ic39f350bd0b4e3942ba576ee12b44b182178527c
Reviewed-on: https://go-review.googlesource.com/c/sys/+/388935
Trust: Matt Layher <mdlayher@gmail.com >
Run-TryBot: Matt Layher <mdlayher@gmail.com >
TryBot-Result: Gopher Robot <gobot@golang.org >
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com >
2022-03-07 20:37:07 +00:00
Tobias Klauser
68d13333fa
unix: add //go:build lines when generating files
...
The //+go:build lines were added by running Go 1.17 gofmt in CL 294490.
Make sure to retain them when re-generating files in this package.
For golang/go#41184 .
Change-Id: Ia418b8c0eb4291a0db3f4bb97685bde78d0ff016
Reviewed-on: https://go-review.googlesource.com/c/sys/+/296889
Trust: Tobias Klauser <tobias.klauser@gmail.com >
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2021-03-09 07:47:19 +00:00
Alberto Donizetti
b00e65af1d
unix/linux: set 100644 mode on mksysnum.go
...
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 9f73c60660 0 plan9/mkall.sh
100755 85309c4a5b 0 plan9/mkerrors.sh
100755 252e89e14d 0 plan9/mksyscall.pl
100755 3c3ab05810 0 plan9/mksysnum_plan9.sh
100755 f8dab7511d 0 unix/mkall.sh
100755 955dd50f9a 0 unix/mkerrors.sh
100755 c44de8d310 0 unix/mksyscall_aix_ppc.pl
100755 53df26bb93 0 unix/mksyscall_aix_ppc64.pl
100755 a354df5a6b 0 unix/mksyscall_solaris.pl
100755 20632e1460 0 unix/mksysctl_openbsd.pl
100755 5453c53b19 0 unix/mksysnum_darwin.pl
100755 6804f41216 0 unix/mksysnum_dragonfly.pl
100755 198993d095 0 unix/mksysnum_freebsd.pl
100755 85988b140b 0 unix/mksysnum_netbsd.pl
100755 84edf60ca1 0 unix/mksysnum_openbsd.pl
Fixes golang/go#29369
Change-Id: I66eae4cec07806ea6289e229819aef8dbbad9335
Reviewed-on: https://go-review.googlesource.com/c/155417
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com >
2018-12-20 20:41:20 +00:00
Visweswara R
a5c9d58dba
unix/linux: replace "mksysnum.pl" script with a Go program
...
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 >
2018-12-05 08:54:12 +00:00