Hi ,

I am facing a problem deciphering the value of st_mode is stat structure.
I am getting below values:

File Permission FilePermission st_mode
-rwxrwxrwx 777 33279
-rw-rw-r-- 664 33204
-rw-rw---- 660 33200

Can someone plese tell me how can I decipher the st_mode value? I mean how can I guess the expected value of st_mode for a new file permission say 444?