github.com/StackExchange/blackbox/v2@v2.0.1-0.20220331193400-d84e904973ab/pkg/bbutil/umask_posix.go (about) 1 // +build !windows 2 3 package bbutil 4 5 import "syscall" 6 7 // Umask is a no-op on Windows, and calls syscall.Umask on all other 8 // systems. On Windows it returns 0, which is a decoy. 9 func Umask(mask int) int { 10 return syscall.Umask(mask) 11 }