num = umask([mask])
Gets or sets the user's file permissions mask bits. If an integer mask is given, this is or'ed with 0777, set as the new mask, and returned to the caller. If the argument is omitted, umask() returns the current mask, unchanged. This call always succeeds.