pkg/system/umask.go
3d2fae35
 // +build !windows
 
 package system
 
 import (
069fdc8a
 	"golang.org/x/sys/unix"
3d2fae35
 )
 
7e420ad8
 // Umask sets current process's file mode creation mask to newmask
aef02273
 // and returns oldmask.
3d2fae35
 func Umask(newmask int) (oldmask int, err error) {
069fdc8a
 	return unix.Umask(newmask), nil
3d2fae35
 }