github.com/moby/docker@v26.1.3+incompatible/pkg/system/mknod_unix.go (about)

     1  //go:build !freebsd && !windows
     2  
     3  package system // import "github.com/docker/docker/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, dev)
    13  }