github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/pkg/system/mknod_unix.go (about) 1 //go:build !freebsd && !windows 2 // +build !freebsd,!windows 3 4 package system // import "github.com/docker/docker/pkg/system" 5 6 import ( 7 "golang.org/x/sys/unix" 8 ) 9 10 // Mknod creates a filesystem node (file, device special file or named pipe) named path 11 // with attributes specified by mode and dev. 12 func Mknod(path string, mode uint32, dev int) error { 13 return unix.Mknod(path, mode, dev) 14 }