Forráskód Böngészése

unix: add AT_SYMLINK_FOLLOW const on openbsd

Change-Id: I60d7ce4a06e5a016cbb9fbf773a34748a5fd96f5
Reviewed-on: https://go-review.googlesource.com/c/sys/+/182899
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Tobias Klauser 6 éve
szülő
commit
6f217b454f

+ 1 - 0
unix/types_openbsd.go

@@ -241,6 +241,7 @@ type Winsize C.struct_winsize
 
 const (
 	AT_FDCWD            = C.AT_FDCWD
+	AT_SYMLINK_FOLLOW   = C.AT_SYMLINK_FOLLOW
 	AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
 )
 

+ 1 - 0
unix/ztypes_openbsd_386.go

@@ -436,6 +436,7 @@ type Winsize struct {
 
 const (
 	AT_FDCWD            = -0x64
+	AT_SYMLINK_FOLLOW   = 0x4
 	AT_SYMLINK_NOFOLLOW = 0x2
 )
 

+ 1 - 0
unix/ztypes_openbsd_amd64.go

@@ -436,6 +436,7 @@ type Winsize struct {
 
 const (
 	AT_FDCWD            = -0x64
+	AT_SYMLINK_FOLLOW   = 0x4
 	AT_SYMLINK_NOFOLLOW = 0x2
 )
 

+ 1 - 0
unix/ztypes_openbsd_arm.go

@@ -437,6 +437,7 @@ type Winsize struct {
 
 const (
 	AT_FDCWD            = -0x64
+	AT_SYMLINK_FOLLOW   = 0x4
 	AT_SYMLINK_NOFOLLOW = 0x2
 )
 

+ 1 - 0
unix/ztypes_openbsd_arm64.go

@@ -430,6 +430,7 @@ type Winsize struct {
 
 const (
 	AT_FDCWD            = -0x64
+	AT_SYMLINK_FOLLOW   = 0x4
 	AT_SYMLINK_NOFOLLOW = 0x2
 )