unix: add OpenTree on linux

This syscall is not yet described in linux man pages
(https://github.com/mkerrisk/man-pages.git)
but it was attempts to do it (https://lwn.net/Articles/829496/)
This syscall appeared in linux kernel v5.2

Change-Id: If44aa74c4ddd200831011c6c4bf4bd4fee440785
Reviewed-on: https://go-review.googlesource.com/c/sys/+/397094
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Alexey Perevalov
2022-04-03 02:05:50 +00:00
committed by Ian Lance Taylor
parent e17cdc4130
commit 483a9cbc67
4 changed files with 23 additions and 0 deletions
+3
View File
@@ -902,6 +902,9 @@ const (
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
AT_EACCESS = C.AT_EACCESS
OPEN_TREE_CLONE = C.OPEN_TREE_CLONE
OPEN_TREE_CLOEXEC = C.OPEN_TREE_CLOEXEC
)
type OpenHow C.struct_open_how