You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// +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)
|
|
}
|