MCPcopy
hub / github.com/smallstep/cli / fileLock

Function fileLock

utils/sysutils/sysutils_unix.go:13–15  ·  view source on GitHub ↗
(fd int)

Source from the content-addressed store, hash-verified

11}
12
13func fileLock(fd int) error {
14 return syscall.Flock(fd, syscall.LOCK_EX|syscall.LOCK_NB)
15}
16
17func fileUnlock(fd int) error {
18 return syscall.Flock(fd, syscall.LOCK_UN)

Callers 1

FileLockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…