mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	Update modules: go mod edit -require github.com/moby/buildkit@master go mod tidy -compat=1.17 && ./hack/update-vendor Signed-off-by: Justin Chadwell <me@jedevc.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			397 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			397 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !windows && !freebsd
 | 
						|
// +build !windows,!freebsd
 | 
						|
 | 
						|
package fsutil
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/tonistiigi/fsutil/types"
 | 
						|
	"golang.org/x/sys/unix"
 | 
						|
)
 | 
						|
 | 
						|
func createSpecialFile(path string, mode uint32, stat *types.Stat) error {
 | 
						|
	return unix.Mknod(path, mode, mkdev(stat.Devmajor, stat.Devminor))
 | 
						|
}
 | 
						|
 | 
						|
func mkdev(major int64, minor int64) int {
 | 
						|
	return int(unix.Mkdev(uint32(major), uint32(minor)))
 | 
						|
}
 |