From 3e129f6d46b10b0e1da36b3deffcb55e09631b64 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 28 Jul 2020 11:42:09 +0200 Subject: [PATCH] unix: add CPU states constants on netbsd Generated on NetBSD 9.0 Also add the sys/sched.h include in includes_FreeBSD in mkerrors.sh which was missing in CL 244518. Change-Id: I257e103849f9e0c6bbf1061eaaa187e277188f84 Reviewed-on: https://go-review.googlesource.com/c/sys/+/245217 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Benny Siegert --- unix/mkerrors.sh | 2 ++ unix/zerrors_netbsd_386.go | 6 ++++++ unix/zerrors_netbsd_amd64.go | 6 ++++++ unix/zerrors_netbsd_arm.go | 6 ++++++ unix/zerrors_netbsd_arm64.go | 6 ++++++ 5 files changed, 26 insertions(+) diff --git a/unix/mkerrors.sh b/unix/mkerrors.sh index e91cb82c..53a24931 100755 --- a/unix/mkerrors.sh +++ b/unix/mkerrors.sh @@ -107,6 +107,7 @@ includes_FreeBSD=' #include #include #include +#include #include #include #include @@ -297,6 +298,7 @@ includes_NetBSD=' #include #include #include +#include #include #include #include diff --git a/unix/zerrors_netbsd_386.go b/unix/zerrors_netbsd_386.go index 96b9b8ab..20f3a579 100644 --- a/unix/zerrors_netbsd_386.go +++ b/unix/zerrors_netbsd_386.go @@ -158,6 +158,12 @@ const ( CLONE_SIGHAND = 0x800 CLONE_VFORK = 0x4000 CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 CREAD = 0x800 CRTSCTS = 0x10000 CS5 = 0x0 diff --git a/unix/zerrors_netbsd_amd64.go b/unix/zerrors_netbsd_amd64.go index ed522a84..90b8fcd2 100644 --- a/unix/zerrors_netbsd_amd64.go +++ b/unix/zerrors_netbsd_amd64.go @@ -158,6 +158,12 @@ const ( CLONE_SIGHAND = 0x800 CLONE_VFORK = 0x4000 CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 CREAD = 0x800 CRTSCTS = 0x10000 CS5 = 0x0 diff --git a/unix/zerrors_netbsd_arm.go b/unix/zerrors_netbsd_arm.go index c8d36fe9..c5c03993 100644 --- a/unix/zerrors_netbsd_arm.go +++ b/unix/zerrors_netbsd_arm.go @@ -150,6 +150,12 @@ const ( BRKINT = 0x2 CFLUSH = 0xf CLOCAL = 0x8000 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 CREAD = 0x800 CRTSCTS = 0x10000 CS5 = 0x0 diff --git a/unix/zerrors_netbsd_arm64.go b/unix/zerrors_netbsd_arm64.go index f1c146a7..14dd3c1d 100644 --- a/unix/zerrors_netbsd_arm64.go +++ b/unix/zerrors_netbsd_arm64.go @@ -158,6 +158,12 @@ const ( CLONE_SIGHAND = 0x800 CLONE_VFORK = 0x4000 CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 CREAD = 0x800 CRTSCTS = 0x10000 CS5 = 0x0