mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f3d3994a4b
Because FreeBSD uses 64-bit device nodes (see https://reviews.freebsd.org/rS318736), Linux implementation of `system.Mknod` & `system.Mkdev` is not sufficient. This change adds freebsd-specific implementations for `Mknod` and Mkdev`. Signed-off-by: Artem Khramov <akhramov@pm.me>
11 lines
327 B
Go
11 lines
327 B
Go
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)
|
|
}
|