]> Cypherpunks repositories - gostls13.git/commit
syscall: fix Open param names
authorqmuntal <quimmuntal@gmail.com>
Thu, 10 Oct 2024 09:09:13 +0000 (11:09 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 10 Oct 2024 20:06:50 +0000 (20:06 +0000)
commit9cc737d482582cca5ba44b2320fb4e48edee9cd6
treedc8afaf0313495180756605f352b54c501dea6b2
parenta9abbac4c86eb685661f2909d3f5ae59ab507773
syscall: fix Open param names

syscall.Open param names are confusing, mainly because what should be
named flag is named mode and what should be named mode is named perm.

The name perm is used as synonym for mode in other places, so keep
it as is. Rename mode to flag to match the real meaning of the
parameter. Also, rename path to name for consistency with other
usage of the same parameter.

Change-Id: Ideed09839d80c0383584c2268afbb6cc09ffda8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/619276
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/syscall/syscall_windows.go
src/syscall/syscall_windows_test.go