mknod_unix.go 360 B

12345678910111213
  1. //go:build !freebsd && !windows
  2. package system // import "github.com/docker/docker/pkg/system"
  3. import (
  4. "golang.org/x/sys/unix"
  5. )
  6. // Mknod creates a filesystem node (file, device special file or named pipe) named path
  7. // with attributes specified by mode and dev.
  8. func Mknod(path string, mode uint32, dev int) error {
  9. return unix.Mknod(path, mode, dev)
  10. }