github.com/vincentwoo/docker@v0.7.3-0.20160116130405-82401a4b13c0/pkg/system/umask.go (about)

     1  // +build !windows
     2  
     3  package system
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  // Umask sets current process's file mode creation mask to newmask
    10  // and return oldmask.
    11  func Umask(newmask int) (oldmask int, err error) {
    12  	return syscall.Umask(newmask), nil
    13  }