diff options
| author | Damien Neil <dneil@google.com> | 2024-10-10 09:57:50 -0700 |
|---|---|---|
| committer | Damien Neil <dneil@google.com> | 2024-10-11 21:56:46 +0000 |
| commit | 86a1a994ff522a7236e6744e40dfbc33d0d6bd88 (patch) | |
| tree | 1a28ab70f10c220abd44df46b8ae9767ae5d1ac6 /src/syscall | |
| parent | 1c6288f7e1005a1217859c20e4892a9f2cfd8091 (diff) | |
| download | go-86a1a994ff522a7236e6744e40dfbc33d0d6bd88.tar.xz | |
internal/syscall/windows: add Openat, Mkdirat
Windows versions of openat and mkdirat,
implemented using NtCreateFile.
For #67002
Change-Id: If43b1c1069733e5c45f7d45a69699fec30187308
Reviewed-on: https://go-review.googlesource.com/c/go/+/619435
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/types_windows.go | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/syscall/types_windows.go b/src/syscall/types_windows.go index 6743675b95..eb1ba06ce6 100644 --- a/src/syscall/types_windows.go +++ b/src/syscall/types_windows.go @@ -34,18 +34,20 @@ const ( const ( // Invented values to support what package os expects. - O_RDONLY = 0x00000 - O_WRONLY = 0x00001 - O_RDWR = 0x00002 - O_CREAT = 0x00040 - O_EXCL = 0x00080 - O_NOCTTY = 0x00100 - O_TRUNC = 0x00200 - O_NONBLOCK = 0x00800 - O_APPEND = 0x00400 - O_SYNC = 0x01000 - O_ASYNC = 0x02000 - O_CLOEXEC = 0x80000 + O_RDONLY = 0x00000 + O_WRONLY = 0x00001 + O_RDWR = 0x00002 + O_CREAT = 0x00040 + O_EXCL = 0x00080 + O_NOCTTY = 0x00100 + O_TRUNC = 0x00200 + O_NONBLOCK = 0x00800 + O_APPEND = 0x00400 + O_SYNC = 0x01000 + O_ASYNC = 0x02000 + O_CLOEXEC = 0x80000 + o_DIRECTORY = 0x100000 // used by internal/syscall/windows + o_NOFOLLOW_ANY = 0x20000000 // used by internal/syscall/windows ) const ( |
