2014-11-13 20:00:04 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2015-07-28 16:13:12 +00:00
|
|
|
// Umask sets current process's file mode creation mask to newmask
|
2016-04-09 13:18:15 +00:00
|
|
|
// and returns oldmask.
|
2014-11-13 20:00:04 +00:00
|
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
|
|
return syscall.Umask(newmask), nil
|
|
|
|
}
|