| 1 | //go:build !windows && !freebsd |
| 2 | // +build !windows,!freebsd |
| 3 | |
| 4 | package fsutilscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil`/ |
| 5 | |
| 6 | import ( |
| 7 | "github.com/tonistiigi/fsutil/typesscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil/types`/" |
| 8 | "golang.org/x/sys/unixscip-go gomod golang.org/x/sys v0.11.0 `golang.org/x/sys/unix`/" |
| 9 | ) |
| 10 | |
| 11 | func createSpecialFilescip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil`/createSpecialFile().(path string, mode uint32, stat *typesscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil/types`/.Statscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil/types`/Stat#) error { |
| 12 | return unixscip-go gomod golang.org/x/sys v0.11.0 `golang.org/x/sys/unix`/.Mknodscip-go gomod golang.org/x/sys v0.11.0 `golang.org/x/sys/unix`/Mknod().(path, mode, mkdevscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil`/mkdev().(stat.Devmajorscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil/types`/Stat#Devmajor., stat.Devminorscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil/types`/Stat#Devminor.)) |
| 13 | } |
| 14 | |
| 15 | func mkdevscip-go gomod github.com/tonistiigi/fsutil . `github.com/tonistiigi/fsutil`/mkdev().(major int64, minor int64) int { |
| 16 | return int(unixscip-go gomod golang.org/x/sys v0.11.0 `golang.org/x/sys/unix`/.Mkdevscip-go gomod golang.org/x/sys v0.11.0 `golang.org/x/sys/unix`/Mkdev().(uint32(major), uint32(minor))) |
| 17 | } |