aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/docker/pkg/system/mknod_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/docker/pkg/system/mknod_unix.go')
-rw-r--r--vendor/github.com/docker/docker/pkg/system/mknod_unix.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/docker/docker/pkg/system/mknod_unix.go b/vendor/github.com/docker/docker/pkg/system/mknod_unix.go
new file mode 100644
index 000000000..4586aad19
--- /dev/null
+++ b/vendor/github.com/docker/docker/pkg/system/mknod_unix.go
@@ -0,0 +1,14 @@
+//go:build !freebsd && !windows
+// +build !freebsd,!windows
+
+package system // import "github.com/docker/docker/pkg/system"
+
+import (
+ "golang.org/x/sys/unix"
+)
+
+// Mknod creates a filesystem node (file, device special file or named pipe) named path
+// with attributes specified by mode and dev.
+func Mknod(path string, mode uint32, dev int) error {
+ return unix.Mknod(path, mode, dev)
+}