aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/lockedfile/lockedfile_plan9.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-13 20:57:16 +0900
committerOphestra <cat@gensokyo.uk>2026-10-13 20:57:16 +0900
commit9e95987536f895ef1a989fcd9e69ab84a1b94a17 (patch)
tree304aec06573103329df9caf3adea58d1b7025700 /internal/lockedfile/lockedfile_plan9.go
parent0abf367b1334b76f5e8f989cf0c07b5d00b25868 (diff)
internal/lockedfile: optionally force write lock
For acquiring a write lock on a directory. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/lockedfile/lockedfile_plan9.go')
-rw-r--r--internal/lockedfile/lockedfile_plan9.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lockedfile/lockedfile_plan9.go b/internal/lockedfile/lockedfile_plan9.go
index a2ce794b..45e2b87c 100644
--- a/internal/lockedfile/lockedfile_plan9.go
+++ b/internal/lockedfile/lockedfile_plan9.go
@@ -42,7 +42,7 @@ func isLocked(err error) bool {
return false
}
-func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) {
+func osOpenFile(name string, flag int, perm fs.FileMode, _ bool) (*os.File, error) {
// Plan 9 uses a mode bit instead of explicit lock/unlock syscalls.
//
// Per http://man.cat-v.org/plan_9/5/stat: “Exclusive use files may be open