mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 22:57:29 -04:00
unix: regenerate on FreeBSD 12.3
Switch mksysnum to use https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12. Also remove the SAL 2.0 annotations. remove FreeBSD 11 and below 64bit inode compatibility shims Drop the errors_freebsd_GOARCH.go files. Drop PTRACE_* and additional (arch specific) consts added as part of golang.org/cl/179099 to types_freebsd. Add <sys/ptrace.h> to mkerror.sh for FreeBSD instead. Run mkall.sh on FreeBSD 12.3 on amd64 and arm64 hosts with i386 and armv7 jails for all supported arches. Updates golang/go#53280 Change-Id: Idd29056829013a1f6eb26376978632645e4018ef Reviewed-on: https://go-review.googlesource.com/c/sys/+/415714 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
31831981b6
commit
05e143d24a
+9
-1
@@ -144,9 +144,17 @@ func main() {
|
||||
text += format(name, num, proto)
|
||||
}
|
||||
case "freebsd":
|
||||
if t.Match(`^([0-9]+)\s+\S+\s+(?:(?:NO)?STD|COMPAT10)\s+({ \S+\s+(\w+).*)$`) {
|
||||
if t.Match(`^([0-9]+)\s+\S+\s+(?:(?:NO)?STD)\s+({ \S+\s+(\w+).*)$`) {
|
||||
num, proto := t.sub[1], t.sub[2]
|
||||
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||
// remove whitespace around parens
|
||||
proto = regexp.MustCompile(`\( `).ReplaceAllString(proto, "(")
|
||||
proto = regexp.MustCompile(` \)`).ReplaceAllString(proto, ")")
|
||||
// remove SAL 2.0 annotations
|
||||
proto = regexp.MustCompile(`_In[^ ]*[_)] `).ReplaceAllString(proto, "")
|
||||
proto = regexp.MustCompile(`_Out[^ ]*[_)] `).ReplaceAllString(proto, "")
|
||||
// remove double spaces at the source
|
||||
proto = regexp.MustCompile(`\s{2}`).ReplaceAllString(proto, " ")
|
||||
text += format(name, num, proto)
|
||||
}
|
||||
case "openbsd":
|
||||
|
||||
Reference in New Issue
Block a user