mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
14 lines
298 B
Go
14 lines
298 B
Go
// +build !windows
|
|
|
|
package system // import "github.com/docker/docker/pkg/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
|
|
}
|