github.com/rawahars/moby@v24.0.4+incompatible/pkg/system/mknod_freebsd.go (about)

     1  //go:build freebsd
     2  // +build freebsd
     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, uint64(dev))
    14  }