summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/util/osutil/open.go
blob: 0242ad0326d46910ab815dd85dd95541a88cfc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//go:build !windows

package osutil

import (
	"io/fs"
	"os"
)

// OpenFile behaves the same as [os.OpenFile],
// except on Windows it sets [syscall.FILE_SHARE_DELETE].
//
// See: https://go.dev/issue/32088#issuecomment-502850674
func OpenFile(name string, flag int, perm fs.FileMode) (*os.File, error) {
	return os.OpenFile(name, flag, perm)
}