notes on and related to umask

umask - set file mode creation mask

#include <sys/types.h>
#include <sys/stat.h>

mode_t umask(mode_t mask);



Binary Number --------------> Decimal Number           
                Abstraction

Decide the required result to decide the needed mask.

Binary Number -------------------> Resultant Binary
               ANDing with mask