mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
3834c605e5
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
13 lines
250 B
Go
13 lines
250 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
// Umask sets current process's file mode creation mask to newmask
|
|
// and returns oldmask.
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
return unix.Umask(newmask), nil
|
|
}
|