github.com/zaolin/u-root@v0.0.0-20200428085104-64aaafd46c6d/pkg/cpio/mknod_freebsd.go (about) 1 // Copyright 2013-2019 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package cpio 6 7 import ( 8 "syscall" 9 ) 10 11 func mknod(path string, mode uint32, dev int) (err error) { 12 return syscall.Mknod(path, mode, uint64(dev)) 13 }