mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d8e1746466
full diff: d72af97c0e...b19f7f9cb2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
289 B
Go
14 lines
289 B
Go
// +build freebsd
|
|
|
|
package fsutil
|
|
|
|
import (
|
|
"github.com/tonistiigi/fsutil/types"
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func createSpecialFile(path string, mode uint32, stat *types.Stat) error {
|
|
dev := unix.Mkdev(uint32(stat.Devmajor), uint32(stat.Devminor))
|
|
|
|
return unix.Mknod(path, mode, dev)
|
|
}
|