]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/windows: add NtCreateFile
authorDamien Neil <dneil@google.com>
Fri, 4 Oct 2024 21:23:54 +0000 (14:23 -0700)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 7 Oct 2024 18:34:43 +0000 (18:34 +0000)
commit6a3f39a9b856c7fd063d9bc10c1e43f074fa8867
treedd2f5208fd0e6f1cc39f901d1ef99fee53473e8f
parentf328f3ff0689b69e92f3a2e55e1afff4fba9a157
internal/syscall/windows: add NtCreateFile

Mostly copied from x/sys/windows.

This adds a various related types and functions,
but the purpose is to give access to NtCreateFile,
which can be used as an equivalent to openat.

For #67002

Change-Id: I04e6f630445a55c2000c9c323ce8dcdc7fc0d0e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/617377
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/syscall/windows/string_windows.go [new file with mode: 0644]
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/types_windows.go
src/internal/syscall/windows/zsyscall_windows.go