When we use open() call by defaults it creates file with mode 644.
Its because the umask on my system is 0022 (0666 & ~0022 = 0644)
Is there any api in C/C++ by means of which I can create a file with desired mode 744.
I don't want to change umask on my system (and of course I don't want to use chmod).
I am just wondering can we set mode during open call itself?