uniugm/admin/lib/xlog/handler/logsyscall/jlog_syscall_linux.go

17 lines
201 B
Go
Raw Normal View History

2025-04-18 17:17:23 +08:00
//go:build linux
// +build linux
package logsyscall
import "syscall"
const (
LOCK_EX int = 2
LOCK_UN int = 8
)
// Flock
func Flock(fd int, how int) (err error) {
return syscall.Flock(fd, how)
}