...
Access permissions for the newly created file should be specified in the call to open()
. Again, the permissions may be influenced by the value of umask()
.
Code Block | ||
---|---|---|
| ||
... int fd = open(file_name, O_CREAT | O_WRONLY, file_access_permissions); if (fd == -1){ /* Handle Error */ } ... |
...