aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/machine/machine_unix.go
blob: 213c24f8c75e530f0a03f9fea6fdc2e26da2252c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//go:build linux || ignore || aix || ignore || android || ignore || darwin || ignore || freebsd || ignore || hurd || ignore || illumos || ignore || ios || ignore || netbsd || ignore || openbsd || ignore || solaris
// +build linux ignore aix ignore android ignore darwin ignore freebsd ignore hurd ignore illumos ignore ios ignore netbsd ignore openbsd ignore solaris

package machine

import (
	"os"
)

func isUnixSocket(file os.DirEntry) bool {
	return file.Type()&os.ModeSocket != 0
}