summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go b/vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go
deleted file mode 100644
index 5399a5f8a..000000000
--- a/vendor/github.com/ncruces/go-sqlite3/internal/dotlk/dotlk_other.go
+++ /dev/null
@@ -1,13 +0,0 @@
-//go:build !unix
-
-package dotlk
-
-import "os"
-
-// TryLock returns nil if it acquired the lock,
-// fs.ErrExist if another process has the lock.
-func TryLock(name string) error {
- f, err := os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
- f.Close()
- return err
-}