github.com/kolbycrouch/elvish@v0.14.1-0.20210614162631-215b9ac1c423/pkg/cli/lscolors/stat_solaris.go (about) 1 package lscolors 2 3 import ( 4 "os" 5 "syscall" 6 ) 7 8 // Taken from Illumos header file. 9 const sIFDOOR = 0xD000 10 11 func isDoor(info os.FileInfo) bool { 12 return info.Sys().(*syscall.Stat_t).Mode&sIFDOOR == sIFDOOR 13 }