From a4fc739902731d4115b4ac0eb4f60c7b875e1285 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 9 Jun 2021 17:48:02 +0200 Subject: [PATCH] unix: add AT_EACCESS and AT_REMOVEDIR on netbsd Change-Id: I1ef10228c858df6c3efe6c7543ce27f1c7984f8e Reviewed-on: https://go-review.googlesource.com/c/sys/+/326429 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- unix/types_netbsd.go | 4 +++- unix/ztypes_netbsd_386.go | 4 +++- unix/ztypes_netbsd_amd64.go | 4 +++- unix/ztypes_netbsd_arm.go | 4 +++- unix/ztypes_netbsd_arm64.go | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/unix/types_netbsd.go b/unix/types_netbsd.go index 04d93b27..9e7d6548 100644 --- a/unix/types_netbsd.go +++ b/unix/types_netbsd.go @@ -266,8 +266,10 @@ type Ptmget C.struct_ptmget const ( AT_FDCWD = C.AT_FDCWD - AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW + AT_EACCESS = C.AT_EACCESS AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW + AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW + AT_REMOVEDIR = C.AT_REMOVEDIR ) // poll diff --git a/unix/ztypes_netbsd_386.go b/unix/ztypes_netbsd_386.go index b10e73ab..2fd2060e 100644 --- a/unix/ztypes_netbsd_386.go +++ b/unix/ztypes_netbsd_386.go @@ -445,8 +445,10 @@ type Ptmget struct { const ( AT_FDCWD = -0x64 - AT_SYMLINK_FOLLOW = 0x400 + AT_EACCESS = 0x100 AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 ) type PollFd struct { diff --git a/unix/ztypes_netbsd_amd64.go b/unix/ztypes_netbsd_amd64.go index 28ed6d55..6a5a1a8a 100644 --- a/unix/ztypes_netbsd_amd64.go +++ b/unix/ztypes_netbsd_amd64.go @@ -453,8 +453,10 @@ type Ptmget struct { const ( AT_FDCWD = -0x64 - AT_SYMLINK_FOLLOW = 0x400 + AT_EACCESS = 0x100 AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 ) type PollFd struct { diff --git a/unix/ztypes_netbsd_arm.go b/unix/ztypes_netbsd_arm.go index 4ba196eb..84cc8d01 100644 --- a/unix/ztypes_netbsd_arm.go +++ b/unix/ztypes_netbsd_arm.go @@ -450,8 +450,10 @@ type Ptmget struct { const ( AT_FDCWD = -0x64 - AT_SYMLINK_FOLLOW = 0x400 + AT_EACCESS = 0x100 AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 ) type PollFd struct { diff --git a/unix/ztypes_netbsd_arm64.go b/unix/ztypes_netbsd_arm64.go index dd642bd9..c844e709 100644 --- a/unix/ztypes_netbsd_arm64.go +++ b/unix/ztypes_netbsd_arm64.go @@ -453,8 +453,10 @@ type Ptmget struct { const ( AT_FDCWD = -0x64 - AT_SYMLINK_FOLLOW = 0x400 + AT_EACCESS = 0x100 AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 ) type PollFd struct {