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
|
|
|
|
// and return oldmask.
|
2014-11-13 20:00:04 +00:00
|
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
|
|
return syscall.Umask(newmask), nil
|
|
|
|
}
|