From 2f1df4e56cdeb503a08d8577e6f1a7eb12efab82 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 26 Sep 2018 12:41:36 +0000 Subject: [PATCH] unix: add additional rlimit resource constants on NetBSD CL 45052 added them to mkerrors.sh but they weren't generated on NetBSD. Do so now. Change-Id: I314b0b7b203aba910a5733f9fbb63b1a0e6ccecf Reviewed-on: https://go-review.googlesource.com/137595 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- unix/zerrors_netbsd_386.go | 3 +++ unix/zerrors_netbsd_amd64.go | 3 +++ unix/zerrors_netbsd_arm.go | 3 +++ 3 files changed, 9 insertions(+) diff --git a/unix/zerrors_netbsd_386.go b/unix/zerrors_netbsd_386.go index 11472b75..78cc04ea 100644 --- a/unix/zerrors_netbsd_386.go +++ b/unix/zerrors_netbsd_386.go @@ -1150,7 +1150,10 @@ const ( RLIMIT_CPU = 0x0 RLIMIT_DATA = 0x2 RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 RLIMIT_STACK = 0x3 RLIM_INFINITY = 0x7fffffffffffffff RTAX_AUTHOR = 0x6 diff --git a/unix/zerrors_netbsd_amd64.go b/unix/zerrors_netbsd_amd64.go index b207e1cf..92185e69 100644 --- a/unix/zerrors_netbsd_amd64.go +++ b/unix/zerrors_netbsd_amd64.go @@ -1140,7 +1140,10 @@ const ( RLIMIT_CPU = 0x0 RLIMIT_DATA = 0x2 RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 RLIMIT_STACK = 0x3 RLIM_INFINITY = 0x7fffffffffffffff RTAX_AUTHOR = 0x6 diff --git a/unix/zerrors_netbsd_arm.go b/unix/zerrors_netbsd_arm.go index fb3ff9bb..373ad454 100644 --- a/unix/zerrors_netbsd_arm.go +++ b/unix/zerrors_netbsd_arm.go @@ -1130,7 +1130,10 @@ const ( RLIMIT_CPU = 0x0 RLIMIT_DATA = 0x2 RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 RLIMIT_STACK = 0x3 RLIM_INFINITY = 0x7fffffffffffffff RTAX_AUTHOR = 0x6