github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/pkg/system/umask.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package system // import "github.com/docker/docker/pkg/system" 5 6 import ( 7 "golang.org/x/sys/unix" 8 ) 9 10 // Umask sets current process's file mode creation mask to newmask 11 // and returns oldmask. 12 func Umask(newmask int) (oldmask int, err error) { 13 return unix.Umask(newmask), nil 14 }