Method System.umask() Method umask int umask(void|int mask) Description Set the current umask to mask. If mask is not specified the current umask will not be changed. Returns Returns the old umask setting.