github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/pkg/system/mknod_freebsd.go (about) 1 //go:build freebsd 2 3 package system // import "github.com/Prakhar-Agarwal-byte/moby/pkg/system" 4 5 import ( 6 "golang.org/x/sys/unix" 7 ) 8 9 // Mknod creates a filesystem node (file, device special file or named pipe) named path 10 // with attributes specified by mode and dev. 11 func Mknod(path string, mode uint32, dev int) error { 12 return unix.Mknod(path, mode, uint64(dev)) 13 }