Files
virtual-kubelet/vendor/github.com/hyperhq/hypercli/pkg/system/umask.go
2017-12-05 17:53:58 -06:00

14 lines
238 B
Go

// +build !windows
package system
import (
"syscall"
)
// Umask sets current process's file mode creation mask to newmask
// and return oldmask.
func Umask(newmask int) (oldmask int, err error) {
return syscall.Umask(newmask), nil
}