mknod_unix.go 388 B

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